about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2019-10-15 15:28:36 +0200
committerGitHub <noreply@github.com>2019-10-15 15:28:36 +0200
commit452a9f645e0f6232a03758942e85dcf0109a1ab9 (patch)
tree7d73ca8edc167a5d8db7d0b1ee3abc3ee7925e1a
parentd0c3d3fd6b7d01535c2dd1d744b159b14afb5f8b (diff)
parent69bba3ea4e38283495dcc1c5a541964bb5175163 (diff)
downloadprofani-tty-452a9f645e0f6232a03758942e85dcf0109a1ab9.tar.gz
Merge pull request #1206 from profanity-im/issue1203
plugins/python: fix double _XOPEN_SOURCE definition
-rw-r--r--src/plugins/python_api.c1
-rw-r--r--src/plugins/python_plugins.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/python_api.c b/src/plugins/python_api.c
index ade24d05..b157cc62 100644
--- a/src/plugins/python_api.c
+++ b/src/plugins/python_api.c
@@ -32,6 +32,7 @@
  *
  */
 
+#undef _XOPEN_SOURCE
 #include <Python.h>
 
 #include "config.h"
diff --git a/src/plugins/python_plugins.c b/src/plugins/python_plugins.c
index a6339793..fa34053c 100644
--- a/src/plugins/python_plugins.c
+++ b/src/plugins/python_plugins.c
@@ -32,6 +32,7 @@
  *
  */
 
+#undef _XOPEN_SOURCE
 #include <Python.h>
 
 #include "log.h"