aports/testing/suspend-utils/define-gnu-source.patch
Andrew Hills 2158257514 testing/suspend-utils: new aport
http://suspend.sourceforge.net
Userspace Software Suspend (µswsusp)
2015-06-09 14:22:28 +00:00

31 lines
695 B
Diff

--- 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>