Define _XOPEN_SOURCE to access some libc functions on Linux

This commit is contained in:
Lassi Kortela 2019-08-10 01:02:59 +03:00
parent 08027cac9b
commit be3c93e2b8
3 changed files with 6 additions and 0 deletions

View File

@ -2,6 +2,8 @@
string functions
*/
#define _XOPEN_SOURCE
#include <sys/types.h>
#include <sys/time.h>

View File

@ -1,3 +1,5 @@
#define _XOPEN_SOURCE
#include <sys/poll.h>
#include <sys/time.h>

View File

@ -13,6 +13,8 @@
A UTF-8 validation routine is included.
*/
#define _XOPEN_SOURCE
#include <assert.h>
#include <stdarg.h>
#include <stddef.h>