Skip to content
Snippets Groups Projects
Commit 4646c29e authored by deuce's avatar deuce
Browse files

startup.h includes threadwrap.h even when it's not building a threaded

program... kludged, not fixed.
parent 9363c672
No related branches found
No related tags found
No related merge requests found
......@@ -45,6 +45,12 @@
#include "client.h"
#include "ringbuf.h"
#include "threadwrap.h" /* sem_t */
#if defined(_PTH_PTHREAD_H_) && ! defined(SBBS) /* Ugly hack around the use of startup.h including threadwrap.h */
/* Leave the warning here as incentive to fix it correctly! */
#define SLEEP(x) ({ int y=x; struct timeval tv; \
tv.tv_sec=(y/1000); tv.tv_usec=((y%1000)*1000); \
select(0,NULL,NULL,NULL,&tv); })
#endif
typedef struct {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment