]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
_GNU_SOURCE for setresuid()
authorPavel Tvrdík <pawel.tvrdik@gmail.cz>
Wed, 19 Aug 2015 12:48:37 +0000 (14:48 +0200)
committerPavel Tvrdík <pawel.tvrdik@gmail.cz>
Wed, 19 Aug 2015 12:57:54 +0000 (14:57 +0200)
sysdep/linux/syspriv.h
sysdep/unix/io.c
sysdep/unix/main.c
sysdep/unix/main_helper.c
sysdep/unix/main_helper.h

index 51bef7316d7cb45f8675b8847b3980b0bb020070..8b210f066270f3a6c5ea61dc3765173f3cd84c4f 100644 (file)
@@ -1,6 +1,10 @@
 #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>
index 78faa186ebde4d57151f514d1eca2d7c7a91b6de..20a40547c7a5440a0815c2b6bf82257e4eb0e57f 100644 (file)
@@ -9,7 +9,9 @@
 
 /* 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>
index 938190efcb3ce89508ba7f2eae26db0c3dfa9b94..eb33a566c12f1bf531416b338f3df03e600292b2 100644 (file)
@@ -7,7 +7,7 @@
  */
 
 #ifndef _GNU_SOURCE
-#define _GNU_SOURCE 1
+#define _GNU_SOURCE
 #endif
 
 #include <stdio.h>
index 0af7b80a0635b8ba0dfdeade50cb435f17daa5bd..7b71bed12e103c7834b5f0d9f623932112de88e6 100644 (file)
@@ -9,7 +9,7 @@
 #undef LOCAL_DEBUG
 
 #ifndef _GNU_SOURCE
-#define _GNU_SOURCE 1
+#define _GNU_SOURCE
 #endif
 
 #include <stdio.h>
index 3beea1dc20e16fb775df58d5840cc2f7c0f23279..1e991a229f7b094289b61958b664ed5fc67843b2 100644 (file)
@@ -9,6 +9,10 @@
 #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"