0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2025-01-05 16:41:53 +00:00

_GNU_SOURCE for setresuid()

This commit is contained in:
Pavel Tvrdík 2015-08-19 14:48:37 +02:00
parent e96f1ea735
commit 810090517b
5 changed files with 13 additions and 3 deletions

View File

@ -1,6 +1,10 @@
#ifndef _BIRD_SYSPRIV_H_ #ifndef _BIRD_SYSPRIV_H_
#define _BIRD_SYSPRIV_H_ #define _BIRD_SYSPRIV_H_
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#include <unistd.h> #include <unistd.h>
#include <sys/prctl.h> #include <sys/prctl.h>
#include <linux/capability.h> #include <linux/capability.h>

View File

@ -9,7 +9,9 @@
/* Unfortunately, some glibc versions hide parts of RFC 3542 API /* Unfortunately, some glibc versions hide parts of RFC 3542 API
if _GNU_SOURCE is not defined. */ if _GNU_SOURCE is not defined. */
#define _GNU_SOURCE 1 #ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>

View File

@ -7,7 +7,7 @@
*/ */
#ifndef _GNU_SOURCE #ifndef _GNU_SOURCE
#define _GNU_SOURCE 1 #define _GNU_SOURCE
#endif #endif
#include <stdio.h> #include <stdio.h>

View File

@ -9,7 +9,7 @@
#undef LOCAL_DEBUG #undef LOCAL_DEBUG
#ifndef _GNU_SOURCE #ifndef _GNU_SOURCE
#define _GNU_SOURCE 1 #define _GNU_SOURCE
#endif #endif
#include <stdio.h> #include <stdio.h>

View File

@ -9,6 +9,10 @@
#ifndef _BIRD_MAIN_HELPER_H_ #ifndef _BIRD_MAIN_HELPER_H_
#define _BIRD_MAIN_HELPER_H_ #define _BIRD_MAIN_HELPER_H_
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#include "lib/birdlib.h" #include "lib/birdlib.h"
#include "lib/socket.h" #include "lib/socket.h"
#include "sysdep/config.h" #include "sysdep/config.h"