projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Replace usleep() with nanosleep().
[tinc]
/
src
/
have.h
diff --git
a/src/have.h
b/src/have.h
index
9dc3b04
..
97d8d43
100644
(file)
--- a/
src/have.h
+++ b/
src/have.h
@@
-33,6
+33,7
@@
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
+#include <stdbool.h>
#include <string.h>
#include <ctype.h>
#include <signal.h>
#include <string.h>
#include <ctype.h>
#include <signal.h>
@@
-41,6
+42,7
@@
#include <unistd.h>
#include <limits.h>
#include <math.h>
#include <unistd.h>
#include <limits.h>
#include <math.h>
+#include <time.h>
#ifdef HAVE_MINGW
#include <w32api.h>
#ifdef HAVE_MINGW
#include <w32api.h>
@@
-49,10
+51,6
@@
#include <ws2tcpip.h>
#endif
#include <ws2tcpip.h>
#endif
-#ifdef HAVE_STDBOOL_H
-#include <stdbool.h>
-#endif
-
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#endif
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#endif
@@
-71,9
+69,6
@@
#include <sys/time.h>
#endif
#include <sys/time.h>
#endif
-#ifdef HAVE_TIME_H
-#include <time.h>
-#endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
@@
-103,10
+98,6
@@
#include <sys/resource.h>
#endif
#include <sys/resource.h>
#endif
-#ifdef HAVE_SYS_UIO_H
-#include <sys/uio.h>
-#endif
-
#ifdef HAVE_SYS_UN_H
#include <sys/un.h>
#endif
#ifdef HAVE_SYS_UN_H
#include <sys/un.h>
#endif
@@
-206,6
+197,16
@@
#include <resolv.h>
#endif
#include <resolv.h>
#endif
+#ifdef HAVE_LINUX_IF_TUN_H
+#include <linux/if_tun.h>
+#endif
+
+#ifdef HAVE_GETOPT_H
+#include <getopt.h>
+#else
+#include "getopt.h"
+#endif
+
#ifdef STATUS
#undef STATUS
#endif
#ifdef STATUS
#undef STATUS
#endif