chiark / gitweb /
use linux/sched.h instead of sched.h for older glibc
[elogind.git] / execute.c
index 65a7fbba1eb45050bad90c03b0cd7e9b4565cc1e..db24ed9ee0a4493313f60e2b70d2b9ec7c91e7d3 100644 (file)
--- a/execute.c
+++ b/execute.c
@@ -1,5 +1,7 @@
 /*-*- Mode: C; c-basic-offset: 8 -*-*/
 
+#pragma GCC diagnostic ignored "-Wattributes"
+
 #include <assert.h>
 #include <dirent.h>
 #include <errno.h>
@@ -10,7 +12,7 @@
 #include <sys/socket.h>
 #include <sys/un.h>
 #include <sys/prctl.h>
-#include <sched.h>
+#include <linux/sched.h>
 
 #include "execute.h"
 #include "strv.h"