summaryrefslogtreecommitdiff
path: root/x11/fltk2
diff options
context:
space:
mode:
authormarino <marino@pkgsrc.org>2011-10-30 11:13:12 +0000
committermarino <marino@pkgsrc.org>2011-10-30 11:13:12 +0000
commit8048780c09c3a81e766789bdf5837ee1a8fccdf9 (patch)
treebae094b6efbb5fc35f22c8d5e5348bbfc0c9eecf /x11/fltk2
parentb50b1a4f7a030545352cf0cb16bb6e6f09c25651 (diff)
downloadpkgsrc-8048780c09c3a81e766789bdf5837ee1a8fccdf9.tar.gz
PR#44932 (x11/fltk2): Fix broken DragonFly build
Diffstat (limited to 'x11/fltk2')
-rw-r--r--x11/fltk2/distinfo3
-rw-r--r--x11/fltk2/patches/patch-ah22
2 files changed, 24 insertions, 1 deletions
diff --git a/x11/fltk2/distinfo b/x11/fltk2/distinfo
index ee5796db532..ee607868bff 100644
--- a/x11/fltk2/distinfo
+++ b/x11/fltk2/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.4 2011/01/29 14:58:50 wiz Exp $
+$NetBSD: distinfo,v 1.5 2011/10/30 11:13:12 marino Exp $
SHA1 (fltk-2.0.x-r6129.tar.bz2) = fafb9e5309127e5dd3e127ecf83f410312a427b5
RMD160 (fltk-2.0.x-r6129.tar.bz2) = a43d9603fdbf12fd0deefbad7e5ef5dd8f0a1c6f
@@ -10,3 +10,4 @@ SHA1 (patch-ad) = 21e2f9cb1406c989a83cac37a9ce39ee462f6088
SHA1 (patch-ae) = 8711184bfcbc2882d115e06cb9716c37349b04c3
SHA1 (patch-af) = ff5648e8c6b935bccb77a8afe09d247f3313c76a
SHA1 (patch-ag) = 3e24e2d748bd7cfbe786359032b6357a6fd7da4c
+SHA1 (patch-ah) = 6e098dbcecb3bd307312d94842f5f80fabf2c75f
diff --git a/x11/fltk2/patches/patch-ah b/x11/fltk2/patches/patch-ah
new file mode 100644
index 00000000000..c6101ce49bf
--- /dev/null
+++ b/x11/fltk2/patches/patch-ah
@@ -0,0 +1,22 @@
+$NetBSD: patch-ah,v 1.1 2011/10/30 11:13:12 marino Exp $
+
+--- src/filename_list.cxx.orig 2007-06-01 13:13:08.000000000 +0000
++++ src/filename_list.cxx
+@@ -31,6 +31,7 @@
+ #include <ctype.h>
+ #include <string.h>
+ #include <stdio.h>
++#include <sys/param.h>
+ #include <fltk/string.h>
+ #include <fltk/utf.h>
+ #include <fltk/filename.h>
+@@ -64,7 +65,8 @@ int fltk::filename_list(const char *d, d
+ int n = scandir(d, list, 0, sort);
+ #elif defined(__linux) || defined (__FreeBSD__) || defined (__NetBSD__)
+ int n = scandir(d, list, 0, (int(*)(const void*,const void*))sort);
+-#elif defined(__hpux) || defined(__CYGWIN__)
++#elif defined(__hpux) || defined(__CYGWIN__) \
++ || (defined(__DragonFly__) && (__DragonFly_version >= 200901))
+ // HP-UX, Cygwin define the comparison function like this:
+ int n = scandir(d, list, 0, (int(*)(const dirent **, const dirent **))sort);
+ #elif defined(__osf__) || defined(__sgi)