#ifndef _BIRD_SYSPRIV_H_
#define _BIRD_SYSPRIV_H_
+#ifndef _GNU_SOURCE
+#define _GNU_SOURCE
+#endif
+
#include <unistd.h>
#include <sys/prctl.h>
#include <linux/capability.h>
/* Unfortunately, some glibc versions hide parts of RFC 3542 API
if _GNU_SOURCE is not defined. */
-#define _GNU_SOURCE 1
+#ifndef _GNU_SOURCE
+#define _GNU_SOURCE
+#endif
#include <stdio.h>
#include <stdlib.h>
*/
#ifndef _GNU_SOURCE
-#define _GNU_SOURCE 1
+#define _GNU_SOURCE
#endif
#include <stdio.h>
#undef LOCAL_DEBUG
#ifndef _GNU_SOURCE
-#define _GNU_SOURCE 1
+#define _GNU_SOURCE
#endif
#include <stdio.h>
#ifndef _BIRD_MAIN_HELPER_H_
#define _BIRD_MAIN_HELPER_H_
+#ifndef _GNU_SOURCE
+#define _GNU_SOURCE
+#endif
+
#include "lib/birdlib.h"
#include "lib/socket.h"
#include "sysdep/config.h"