From: Vincent Bernat Date: Wed, 8 May 2013 22:05:03 +0000 (+0200) Subject: solaris: less intrusive way to get CMSG_* macros X-Git-Tag: 0.7.3~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b1a8985da6854b697a3ad40d22b1c90bef6bbe76;p=thirdparty%2Flldpd.git solaris: less intrusive way to get CMSG_* macros The use of _XOPEN_SOURCE breaks most BSD. --- diff --git a/src/daemon/privsep_fdpass.c b/src/daemon/privsep_fdpass.c index cb6bc9ea..0a1ba08b 100644 --- a/src/daemon/privsep_fdpass.c +++ b/src/daemon/privsep_fdpass.c @@ -32,8 +32,8 @@ */ /* The following are needed by Solaris. The first to get CMSG_* and the second - * to keep IFNAMSIZ */ -#define _XOPEN_SOURCE 600 + * to keep net/if.h working */ +#define _XPG4_2 #define __EXTENSIONS__ #include "lldpd.h"