aboutsummaryrefslogtreecommitdiffstats
path: root/lang/icon
diff options
context:
space:
mode:
authormarino <marino@FreeBSD.org>2015-03-27 00:18:10 +0800
committermarino <marino@FreeBSD.org>2015-03-27 00:18:10 +0800
commite8e25cc7d1921d50c5bdf99409c18989052d10ad (patch)
treee5ca6336322f9cf0336a63f170ccdaf468c2de95 /lang/icon
parentf9503c4bc72fa4ef344e3153b0fd053138ddae50 (diff)
downloadfreebsd-ports-gnome-e8e25cc7d1921d50c5bdf99409c18989052d10ad.tar.gz
freebsd-ports-gnome-e8e25cc7d1921d50c5bdf99409c18989052d10ad.tar.zst
freebsd-ports-gnome-e8e25cc7d1921d50c5bdf99409c18989052d10ad.zip
lang/icon: Add DragonFly support
Bring in fix from dports (port is not maintained)
Diffstat (limited to 'lang/icon')
-rw-r--r--lang/icon/files/patch-ipl_cfuncs_fpoll.c14
-rw-r--r--lang/icon/files/patch-ipl_cfuncs_mklib.sh11
2 files changed, 25 insertions, 0 deletions
diff --git a/lang/icon/files/patch-ipl_cfuncs_fpoll.c b/lang/icon/files/patch-ipl_cfuncs_fpoll.c
new file mode 100644
index 000000000000..6b25844f1f18
--- /dev/null
+++ b/lang/icon/files/patch-ipl_cfuncs_fpoll.c
@@ -0,0 +1,14 @@
+--- ipl/cfuncs/fpoll.c.orig 2009-10-27 20:39:16 UTC
++++ ipl/cfuncs/fpoll.c
+@@ -37,7 +37,11 @@
+
+ int fpoll(int argc, descriptor *argv) /*: await data from file */
+ {
++#ifdef __DragonFly__
++ struct __FILE_public *f;
++#else
+ FILE *f;
++#endif
+ int msec, r;
+ fd_set fds;
+ struct timeval tv, *tvp;
diff --git a/lang/icon/files/patch-ipl_cfuncs_mklib.sh b/lang/icon/files/patch-ipl_cfuncs_mklib.sh
new file mode 100644
index 000000000000..a42af318e617
--- /dev/null
+++ b/lang/icon/files/patch-ipl_cfuncs_mklib.sh
@@ -0,0 +1,11 @@
+--- ipl/cfuncs/mklib.sh.orig 2015-03-22 15:13:09 UTC
++++ ipl/cfuncs/mklib.sh
+@@ -11,7 +11,7 @@ shift
+ SYS=`uname -s`
+ set -x
+ case "$SYS" in
+- Linux*|*BSD*|GNU*)
++ DragonFly*|Linux*|*BSD*|GNU*)
+ $CC -shared -o $LIBNAME -fPIC "$@";;
+ CYGWIN*)
+ # move the win32 import library for iconx.exe callbacks