aboutsummaryrefslogtreecommitdiffstats
path: root/testing/policycoreutils/0002-hack-around-GLOB-BRACE-TILDE.patch
diff options
context:
space:
mode:
Diffstat (limited to 'testing/policycoreutils/0002-hack-around-GLOB-BRACE-TILDE.patch')
-rw-r--r--testing/policycoreutils/0002-hack-around-GLOB-BRACE-TILDE.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/testing/policycoreutils/0002-hack-around-GLOB-BRACE-TILDE.patch b/testing/policycoreutils/0002-hack-around-GLOB-BRACE-TILDE.patch
new file mode 100644
index 00000000000..37e5a8ba1a9
--- /dev/null
+++ b/testing/policycoreutils/0002-hack-around-GLOB-BRACE-TILDE.patch
@@ -0,0 +1,32 @@
+From e10015ee546c549f1eb93388b5aa9723f510bcdc Mon Sep 17 00:00:00 2001
+From: Tycho Andersen <tycho@docker.com>
+Date: Tue, 14 Mar 2017 20:53:52 -0700
+Subject: [PATCH 1/2] policycoreutils: hack around GLOB_{BRACE,TILDE}
+
+Signed-off-by: Tycho Andersen <tycho@docker.com>
+---
+ setfiles/restore.c | 8 ++++++++
+ 1 file changed, 8 insertions(+)
+
+diff --git a/setfiles/restore.c b/setfiles/restore.c
+index 50d192a..3bc3c39 100644
+--- a/setfiles/restore.c
++++ b/setfiles/restore.c
+@@ -6,6 +6,14 @@
+ #include "restore.h"
+ #include <glob.h>
+
++#ifndef GLOB_TILDE
++#define GLOB_TILDE 0
++#endif
++
++#ifndef GLOB_BRACE
++#define GLOB_BRACE 0
++#endif
++
+ char **exclude_list;
+ int exclude_count;
+
+--
+2.11.1
+