0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2025-01-03 15:41:54 +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_
#define _BIRD_SYSPRIV_H_
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#include <unistd.h>
#include <sys/prctl.h>
#include <linux/capability.h>

View 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>

View File

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

View File

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

View 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"