From f5c588c9554b694b5d07f70bce38ec41e7b70660 Mon Sep 17 00:00:00 2001 From: Willem Toorop Date: Thu, 3 May 2018 11:30:28 +0200 Subject: [PATCH] Need _GNU_SOURCE before config.h --- src/compat/getentropy_linux.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/compat/getentropy_linux.c b/src/compat/getentropy_linux.c index 4f437bf3..9f216f8c 100644 --- a/src/compat/getentropy_linux.c +++ b/src/compat/getentropy_linux.c @@ -19,12 +19,10 @@ * Emulation of getentropy(2) as documented at: * http://man.openbsd.org/getentropy.2 */ +#define _GNU_SOURCE 1 +#define _POSIX_C_SOURCE 199309L #include "config.h" -/* -#define _POSIX_C_SOURCE 199309L -*/ -#define _GNU_SOURCE 1 #include #include #include