aboutsummaryrefslogtreecommitdiff
path: root/patches/0042-doas-define-gnu-source.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/0042-doas-define-gnu-source.patch')
-rw-r--r--patches/0042-doas-define-gnu-source.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/patches/0042-doas-define-gnu-source.patch b/patches/0042-doas-define-gnu-source.patch
new file mode 100644
index 0000000..cfd119b
--- /dev/null
+++ b/patches/0042-doas-define-gnu-source.patch
@@ -0,0 +1,13 @@
+--- a/usr.bin/doas/doas.c 2020-10-16 13:11:26.769202572 +0300
++++ b/usr.bin/doas/doas.c 2020-10-16 13:09:43.558056917 +0300
+@@ -15,6 +15,10 @@
+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
++#ifndef _GNU_SOURCE
++#define _GNU_SOURCE
++#endif
++
+ #include <sys/types.h>
+ #include <sys/stat.h>
+ #include <sys/ioctl.h>