summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2016-12-13 20:38:46 -0500
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2016-12-15 21:00:08 -0500
commit17a1dad79588313c879a3eef94dcb8d5ad1b57ba (patch)
treefd9e395795d55bea9b226bf2b9d9ecd85b64b229
parent63cc41a45671dccadaa0723915fc1389327530cd (diff)
downloadpython-systemd-17a1dad79588313c879a3eef94dcb8d5ad1b57ba.tar.gz
util: add compatibility for old glibc
Oh, Ubuntu!
-rw-r--r--systemd/util.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/systemd/util.c b/systemd/util.c
index c6ec3b2..f4551c3 100644
--- a/systemd/util.c
+++ b/systemd/util.c
@@ -19,6 +19,10 @@
/* stuff imported from systemd without any changes */
+#ifndef _GNU_SOURCE
+# define _GNU_SOURCE
+#endif
+
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>