1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

Subject: [PATCH] libwebsockets.h: use _GNU_SOURCE instead of __USE_GNU

this collides with use of features.h which says '#define __USE_GNU 1'

see also second answer:
http://stackoverflow.com/questions/7296963/gnu-source-and-use-gnu?answertab=active#tab-top
This commit is contained in:
Michael Haberler 2014-01-10 23:40:14 +01:00 committed by Andy Green
parent f162492cf3
commit eca0e4913d

View file

@ -65,7 +65,9 @@ typedef SSIZE_T ssize_t;
#else // NOT WIN32
/* to get ppoll() */
#define __USE_GNU
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#include <poll.h>
#include <unistd.h>