forked from pool/tomoyo-tools
Fix build: clone needs _GNU_SOURCE defined to be visible OBS-URL: https://build.opensuse.org/request/show/80170 OBS-URL: https://build.opensuse.org/package/show/security/tomoyo-tools?expand=0&rev=9
41 lines
1.2 KiB
Diff
41 lines
1.2 KiB
Diff
Index: tomoyo-tools/usr_lib_tomoyo/tomoyo-notifyd.c
|
|
===================================================================
|
|
--- tomoyo-tools.orig/usr_lib_tomoyo/tomoyo-notifyd.c
|
|
+++ tomoyo-tools/usr_lib_tomoyo/tomoyo-notifyd.c
|
|
@@ -20,6 +20,7 @@
|
|
* this program; if not, write to the Free Software Foundation, Inc.,
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
|
*/
|
|
+#define _GNU_SOURCE
|
|
#include <stdio.h>
|
|
#include <string.h>
|
|
#include <stdlib.h>
|
|
@@ -29,7 +30,6 @@
|
|
#include <sys/file.h>
|
|
#include <syslog.h>
|
|
#include <time.h>
|
|
-#define _GNU_SOURCE
|
|
#include <sched.h>
|
|
#include <sys/mount.h>
|
|
|
|
Index: tomoyo-tools/usr_lib_tomoyo/tomoyo-editpolicy-agent.c
|
|
===================================================================
|
|
--- tomoyo-tools.orig/usr_lib_tomoyo/tomoyo-editpolicy-agent.c
|
|
+++ tomoyo-tools/usr_lib_tomoyo/tomoyo-editpolicy-agent.c
|
|
@@ -20,6 +20,7 @@
|
|
* this program; if not, write to the Free Software Foundation, Inc.,
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
|
*/
|
|
+#define _GNU_SOURCE
|
|
#include <stdio.h>
|
|
#include <string.h>
|
|
#include <stdlib.h>
|
|
@@ -33,7 +34,6 @@
|
|
#include <poll.h>
|
|
#include <signal.h>
|
|
#include <dirent.h>
|
|
-#define _GNU_SOURCE
|
|
#include <sched.h>
|
|
#include <sys/mount.h>
|
|
|