mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
_GNU_SOURCE: only define if not already defined
https://github.com/warmcat/libwebsockets/issues/1803
This commit is contained in:
parent
c327c7fdb7
commit
c4ab815aaf
14 changed files with 31 additions and 2 deletions
|
@ -29,7 +29,7 @@
|
|||
#include "lws_config_private.h"
|
||||
|
||||
#if defined(LWS_WITH_CGI) && defined(LWS_HAVE_VFORK) && \
|
||||
!defined(NO_GNU_SOURCE_THIS_TIME)
|
||||
!defined(NO_GNU_SOURCE_THIS_TIME) && !defined(_GNU_SOURCE)
|
||||
#define _GNU_SOURCE
|
||||
#endif
|
||||
|
||||
|
|
|
@ -22,8 +22,12 @@
|
|||
* IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#if !defined(NO_GNU_SOURCE_THIS_TIME)
|
||||
#define NO_GNU_SOURCE_THIS_TIME
|
||||
#endif
|
||||
#if !defined(_DARWIN_C_SOURCE)
|
||||
#define _DARWIN_C_SOURCE
|
||||
#endif
|
||||
|
||||
#include <libwebsockets.h>
|
||||
#include "private-lib-core.h"
|
||||
|
|
|
@ -22,7 +22,9 @@
|
|||
* IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#if !defined(_GNU_SOURCE)
|
||||
#define _GNU_SOURCE
|
||||
#endif
|
||||
#include <pthread.h>
|
||||
|
||||
#include "private-lib-core.h"
|
||||
|
|
|
@ -22,7 +22,10 @@
|
|||
* IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#if !defined(_GNU_SOURCE)
|
||||
#define _GNU_SOURCE
|
||||
#endif
|
||||
|
||||
#include <pthread.h>
|
||||
|
||||
#include "private-lib-core.h"
|
||||
|
|
|
@ -22,7 +22,9 @@
|
|||
* IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#if !defined(_GNU_SOURCE)
|
||||
#define _GNU_SOURCE
|
||||
#endif
|
||||
#include "private-lib-core.h"
|
||||
|
||||
#include <pwd.h>
|
||||
|
|
|
@ -22,7 +22,9 @@
|
|||
* IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#if !defined(_GNU_SOURCE)
|
||||
#define _GNU_SOURCE
|
||||
#endif
|
||||
#include "private-lib-core.h"
|
||||
|
||||
struct lws *
|
||||
|
|
|
@ -22,7 +22,9 @@
|
|||
* IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#if !defined(_GNU_SOURCE)
|
||||
#define _GNU_SOURCE
|
||||
#endif
|
||||
#include "private-lib-core.h"
|
||||
|
||||
#include <pwd.h>
|
||||
|
|
|
@ -22,7 +22,9 @@
|
|||
* IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#if !defined(_GNU_SOURCE)
|
||||
#define _GNU_SOURCE
|
||||
#endif
|
||||
#include "private-lib-core.h"
|
||||
|
||||
#include <pwd.h>
|
||||
|
|
|
@ -22,7 +22,9 @@
|
|||
* IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#if !defined(_GNU_SOURCE)
|
||||
#define _GNU_SOURCE
|
||||
#endif
|
||||
#include "private-lib-core.h"
|
||||
|
||||
lws_usec_t
|
||||
|
|
|
@ -22,7 +22,9 @@
|
|||
* IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#if !defined(_GNU_SOURCE)
|
||||
#define _GNU_SOURCE
|
||||
#endif
|
||||
#include "private-lib-core.h"
|
||||
|
||||
|
||||
|
|
|
@ -22,7 +22,9 @@
|
|||
* IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#if !defined(_GNU_SOURCE)
|
||||
#define _GNU_SOURCE
|
||||
#endif
|
||||
#include "private-lib-core.h"
|
||||
|
||||
#include <pwd.h>
|
||||
|
|
|
@ -22,7 +22,9 @@
|
|||
* IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#if !defined(_GNU_SOURCE)
|
||||
#define _GNU_SOURCE
|
||||
#endif
|
||||
#include "private-lib-core.h"
|
||||
|
||||
int
|
||||
|
|
|
@ -22,7 +22,9 @@
|
|||
* IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#if !defined(_GNU_SOURCE)
|
||||
#define _GNU_SOURCE
|
||||
#endif
|
||||
#include "private-lib-core.h"
|
||||
|
||||
#include <sys/ioctl.h>
|
||||
|
|
|
@ -22,7 +22,9 @@
|
|||
* IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#define _GNU_SOURCE
|
||||
#if !defined(_GNU_SOURCE)
|
||||
#define _GNU_SOURCE
|
||||
#endif
|
||||
|
||||
#include "private-lib-core.h"
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue