summaryrefslogtreecommitdiff
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 b22d703f5..f8a23b88d 100644
--- a/defines.h
+++ b/defines.h
@@ -9,6 +9,8 @@
9 9
10#include <netinet/in.h> /* For IPv6 macros */ 10#include <netinet/in.h> /* For IPv6 macros */
11 11
12#include <netinet/ip.h> /* For IPTOS macros */
13
12#ifdef HAVE_SYS_BITYPES_H 14#ifdef HAVE_SYS_BITYPES_H
13# include <sys/bitypes.h> /* For u_intXX_t */ 15# include <sys/bitypes.h> /* For u_intXX_t */
14#endif 16#endif
@@ -55,6 +57,14 @@ enum
55# define SHUT_RDWR SHUT_RDWR 57# define SHUT_RDWR SHUT_RDWR
56#endif 58#endif
57 59
60#ifndef IPTOS_LOWDELAY
61# define IPTOS_LOWDELAY 0x10
62# define IPTOS_THROUGHPUT 0x08
63# define IPTOS_RELIABILITY 0x04
64# define IPTOS_LOWCOST 0x02
65# define IPTOS_MINCOST IPTOS_LOWCOST
66#endif /* IPTOS_LOWDELAY */
67
58/* Types */ 68/* Types */
59 69
60/* If sys/types.h does not supply intXX_t, supply them ourselves */ 70/* If sys/types.h does not supply intXX_t, supply them ourselves */