aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorfalkTX <falktx@falktx.com>2021-05-25 10:48:56 +0100
committerDavid Robillard <d@drobilla.net>2021-05-25 09:41:33 -0400
commitab80b4bfa717049da3d8fb21cd4560fced6f5baf (patch)
treeb81559f5656155f5977939de1d9605b04f5a48d6 /src
parent84596ee94464bbd2fd8da2a288cf3b9337e0017c (diff)
downloadpugl-ab80b4bfa717049da3d8fb21cd4560fced6f5baf.tar.gz
pugl-ab80b4bfa717049da3d8fb21cd4560fced6f5baf.tar.bz2
pugl-ab80b4bfa717049da3d8fb21cd4560fced6f5baf.zip
X11: Do not override _POSIX_C_SOURCE if already defined
Diffstat (limited to 'src')
-rw-r--r--src/x11.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/x11.c b/src/x11.c
index d7ac4a5..bd7d808 100644
--- a/src/x11.c
+++ b/src/x11.c
@@ -16,7 +16,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#define _POSIX_C_SOURCE 199309L
+#ifndef _POSIX_C_SOURCE
+# define _POSIX_C_SOURCE 199309L
+#endif
#include "x11.h"