summaryrefslogtreecommitdiffstats
path: root/defines.h
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2000-04-08 17:48:56 +1000
committerDamien Miller <djm@mindrot.org>2000-04-08 17:48:56 +1000
commitbc7c7cceea205733e3d0902bc751009b5836ff9c (patch)
tree879d315a66bc070c2410ee9da19b93780be517d1 /defines.h
parent73a26627f255088b55172f7947c8c2419634059b (diff)
- Avoid some compiler warnings in fake-get*.c
- Add IPTOS macros for systems which lack them
Diffstat (limited to 'defines.h')
-rw-r--r--defines.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/defines.h b/defines.h
index b22d703f..f8a23b88 100644
--- a/defines.h
+++ b/defines.h
@@ -9,6 +9,8 @@
#include <netinet/in.h> /* For IPv6 macros */
+#include <netinet/ip.h> /* For IPTOS macros */
+
#ifdef HAVE_SYS_BITYPES_H
# include <sys/bitypes.h> /* For u_intXX_t */
#endif
@@ -55,6 +57,14 @@ enum
# define SHUT_RDWR SHUT_RDWR
#endif
+#ifndef IPTOS_LOWDELAY
+# define IPTOS_LOWDELAY 0x10
+# define IPTOS_THROUGHPUT 0x08
+# define IPTOS_RELIABILITY 0x04
+# define IPTOS_LOWCOST 0x02
+# define IPTOS_MINCOST IPTOS_LOWCOST
+#endif /* IPTOS_LOWDELAY */
+
/* Types */
/* If sys/types.h does not supply intXX_t, supply them ourselves */