Need _GNU_SOURCE before config.h

This commit is contained in:
Willem Toorop 2018-05-03 11:30:28 +02:00
parent f0f101511b
commit f5c588c955
1 changed files with 2 additions and 4 deletions

View File

@ -19,12 +19,10 @@
* Emulation of getentropy(2) as documented at: * Emulation of getentropy(2) as documented at:
* http://man.openbsd.org/getentropy.2 * http://man.openbsd.org/getentropy.2
*/ */
#define _GNU_SOURCE 1
#define _POSIX_C_SOURCE 199309L
#include "config.h" #include "config.h"
/*
#define _POSIX_C_SOURCE 199309L
*/
#define _GNU_SOURCE 1
#include <sys/types.h> #include <sys/types.h>
#include <sys/param.h> #include <sys/param.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>