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:
parent
f162492cf3
commit
eca0e4913d
1 changed files with 3 additions and 1 deletions
|
@ -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>
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue