diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-01-14 00:49:37 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-01-14 00:49:37 +0100 |
commit | 1d66e33cd8420401b3431aaefe5a479d9679f277 (patch) | |
tree | d89048d8a03f5630112dcea42f02ca73f54cfdfb /pfinet | |
parent | 55db6d133a92cf32aaac8bf3aec663dfd58660e0 (diff) |
Use SOL_* values from libc
* pfinet/glue-include/linux/socket.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): Define
only if not defined by libc already.
Diffstat (limited to 'pfinet')
-rw-r--r-- | pfinet/glue-include/linux/socket.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pfinet/glue-include/linux/socket.h b/pfinet/glue-include/linux/socket.h index 820ed00f..057afbdb 100644 --- a/pfinet/glue-include/linux/socket.h +++ b/pfinet/glue-include/linux/socket.h @@ -20,10 +20,16 @@ #define SOPRI_NORMAL 1 #define SOPRI_BACKGROUND 2 +#ifndef SOL_IP #define SOL_IP IPPROTO_IP +#endif #define SOL_TCP IPPROTO_TCP +#ifndef SOL_IPV6 #define SOL_IPV6 IPPROTO_IPV6 +#endif +#ifndef SOL_ICMPV6 #define SOL_ICMPV6 IPPROTO_ICMPV6 +#endif #define SOL_RAW IPPROTO_RAW /* IP options */ |