From b1a8985da6854b697a3ad40d22b1c90bef6bbe76 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Thu, 9 May 2013 00:05:03 +0200 Subject: [PATCH] solaris: less intrusive way to get CMSG_* macros The use of _XOPEN_SOURCE breaks most BSD. --- src/daemon/privsep_fdpass.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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" -- 2.39.5