Commit 81009051 authored by Pavel Tvrdík's avatar Pavel Tvrdík
Browse files

_GNU_SOURCE for setresuid()

parent e96f1ea7
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
#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>
+3 −1
Original line number Diff line number Diff line
@@ -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>
+1 −1
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@
 */

#ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#define _GNU_SOURCE
#endif

#include <stdio.h>
+1 −1
Original line number Diff line number Diff line
@@ -9,7 +9,7 @@
#undef LOCAL_DEBUG

#ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#define _GNU_SOURCE
#endif

#include <stdio.h>
+4 −0
Original line number Diff line number Diff line
@@ -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"