summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/api.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/api.c b/src/api.c
index 99e71fe..4d5b524 100644
--- a/src/api.c
+++ b/src/api.c
@@ -25,6 +25,10 @@
* for mistakes in APIs for reading statistics.
*/
+#ifndef _GNU_SOURCE
+#define _GNU_SOURCE
+#endif
+
#include <dirent.h>
#include <errno.h>
#include <libcgroup.h>