diff options
author | Michael Haberler <git@mah.priv.at> | 2014-01-10 23:40:14 +0100 |
---|---|---|
committer | Andy Green <andy.green@linaro.org> | 2014-01-18 11:44:50 +0800 |
commit | eca0e4913d03e5dcf412051ada5dfb3e0664ae89 (patch) | |
tree | ba800e3351facbba28a62cbab512e1311f42c65c /lib | |
parent | f162492cf389d9680ecacfd951921607e0899679 (diff) | |
download | libwebsockets-eca0e4913d03e5dcf412051ada5dfb3e0664ae89.tar.gz |
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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libwebsockets.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libwebsockets.h b/lib/libwebsockets.h index 16f294fd..2fd78b18 100644 --- a/lib/libwebsockets.h +++ b/lib/libwebsockets.h @@ -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> |