From f40f86e572898d621702ff903b3ecbb873f0237e Mon Sep 17 00:00:00 2001 From: charlet Date: Wed, 19 Dec 2007 16:25:58 +0000 Subject: [PATCH] 2007-12-19 Thomas Quinot Part of PR ada/33688 * gen-soccon.c: Add constant IP_PKTINFO to allow getting ancillary datagram info on Linux. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@131084 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ada/gen-soccon.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gcc/ada/gen-soccon.c b/gcc/ada/gen-soccon.c index 79701bb..ec513f6 100644 --- a/gcc/ada/gen-soccon.c +++ b/gcc/ada/gen-soccon.c @@ -573,6 +573,11 @@ CND(IP_ADD_MEMBERSHIP, "Join a multicast group") #endif CND(IP_DROP_MEMBERSHIP, "Leave a multicast group") +#ifndef IP_PKTINFO +#define IP_PKTINFO -1 +#endif +CND(IP_PKTINFO, "Get datagram info") + _NL TXT(" -------------------") TXT(" -- System limits --") -- 2.7.4