pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

doas: Fixed compilation on DragonFly BSD.



Module Name:	pkgsrc-wip
Committed By:	Aleksej Lebedev <root%zta.lk@localhost>
Pushed By:	zhtw
Date:		Wed Oct 16 12:07:40 2019 +0200
Changeset:	cf261a6b3d9e9bb4b7c2bebcb67dd592813293ea

Modified Files:
	doas/distinfo
Added Files:
	doas/patches/patch-compat_compat.h

Log Message:
doas: Fixed compilation on DragonFly BSD.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=cf261a6b3d9e9bb4b7c2bebcb67dd592813293ea

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 doas/distinfo                      |  1 +
 doas/patches/patch-compat_compat.h | 15 +++++++++++++++
 2 files changed, 16 insertions(+)

diffs:
diff --git a/doas/distinfo b/doas/distinfo
index ea32b3085f..6a0b3fbfb8 100644
--- a/doas/distinfo
+++ b/doas/distinfo
@@ -4,3 +4,4 @@ SHA1 (doas/6.2p2.tar.gz) = 417cb9de4d1815b342f1bb3fb96f31e2c8b25479
 RMD160 (doas/6.2p2.tar.gz) = d80538763cb0a0367eb2a6e50369743ea66aa1a5
 SHA512 (doas/6.2p2.tar.gz) = 5020559461bc423852c2d30c07df671b8cbf93cec2171ac755eac04f2bf56fca37fda8d72718fbf4150bf70e7855d29d3027cb54d81062d28d2271a290c297a5
 Size (doas/6.2p2.tar.gz) = 25634 bytes
+SHA1 (patch-compat_compat.h) = 9ac2c76586e2a6c82ba9a329cbf0ea6d5cd87ede
diff --git a/doas/patches/patch-compat_compat.h b/doas/patches/patch-compat_compat.h
new file mode 100644
index 0000000000..fc6f44980c
--- /dev/null
+++ b/doas/patches/patch-compat_compat.h
@@ -0,0 +1,15 @@
+$NetBSD$
+
+DragonFly BSD already has closefrom defined in unistd.h
+
+--- compat/compat.h.orig	2019-10-12 15:07:28.000000000 +0000
++++ compat/compat.h
+@@ -1,7 +1,7 @@
+ #include <sys/types.h>
+ #include <stdarg.h>
+ 
+-#if !defined(__NetBSD__)
++#if !defined(__NetBSD__) && !defined(__DragonFly__)
+ void closefrom(int lowfd);
+ #endif
+ 


Home | Main Index | Thread Index | Old Index