]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
solaris: less intrusive way to get CMSG_* macros
authorVincent Bernat <bernat@luffy.cx>
Wed, 8 May 2013 22:05:03 +0000 (00:05 +0200)
committerVincent Bernat <bernat@luffy.cx>
Wed, 8 May 2013 22:05:03 +0000 (00:05 +0200)
The use of _XOPEN_SOURCE breaks most BSD.

src/daemon/privsep_fdpass.c

index cb6bc9eaeecca6760060f56a37fdf1dfde6ae5ea..0a1ba08b4595d2618fb646849df23f19d1f42b70 100644 (file)
@@ -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"