aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/suspend-utils/define-gnu-source.patch
blob: 2d289a698ef4b38b0f22d0230c2176ba01600856 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
--- suspend-utils-1.0/load.c
+++ suspend-utils-1.0-patch/load.c
@@ -17,6 +17,7 @@
 #include <time.h>
 #include <syscall.h>
 #include <libgen.h>
+#define _GNU_SOURCE
 #include <fcntl.h>
 #include <unistd.h>
 #include <stdio.h>
--- suspend-utils-1.0/resume.c
+++ suspend-utils-1.0-patch/resume.c
@@ -18,6 +18,7 @@
 #include <time.h>
 #include <syscall.h>
 #include <libgen.h>
+#define _GNU_SOURCE
 #include <fcntl.h>
 #include <unistd.h>
 #include <stdio.h>
--- suspend-utils-1.0/suspend.c
+++ suspend-utils-1.0-patch/suspend.c
@@ -24,6 +24,7 @@
 #include <linux/tiocl.h>
 #include <syscall.h>
 #include <libgen.h>
+#define _GNU_SOURCE
 #include <fcntl.h>
 #include <unistd.h>
 #include <stdio.h>