summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2018-08-23 09:36:06 +0200
committerJo-Philipp Wich <jo@mein.io>2018-08-23 09:36:06 +0200
commit77b774b30f9125e77137c57a2ff86de57361d947 (patch)
treeb5db04be0f8e4f073667904f22ab29f840ab83a5 /main.c
parentb741dec35698a80266fb8206970638e666774a33 (diff)
build: avoid redefining _DEFAULT_SOURCE
Work around further glibc toolchain annoyances. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'main.c')
-rw-r--r--main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/main.c b/main.c
index 6574c15..219e37e 100644
--- a/main.c
+++ b/main.c
@@ -17,7 +17,10 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#define _DEFAULT_SOURCE
+#ifndef _DEFAULT_SOURCE
+# define _DEFAULT_SOURCE
+#endif
+
#define _BSD_SOURCE
#define _GNU_SOURCE
#define _XOPEN_SOURCE 700