pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/44932: x11/fltk2: patch for DragonFly support
>Number: 44932
>Category: pkg
>Synopsis: x11/fltk2: patch for DragonFly support
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed May 04 11:50:01 +0000 2011
>Originator: Matthias Rampke
>Release: DragonFly 2.10
>Organization:
>Environment:
DragonFly tp.2pktfkt.net 2.10-RELEASE DragonFly v2.10.1.6.g25419-RELEASE #0:
Mon May 2 02:26:36 CEST 2011
matthias%tp.2pktfkt.net@localhost:/usr/obj/usr/src/sys/GENERIC i386
>Description:
incompatible declaration of scandir() in src/filename_list.cxx
>How-To-Repeat:
build on DragonFly
>Fix:
diff --git a/x11/fltk2/distinfo b/x11/fltk2/distinfo
index 8d03ec9..cde202f 100644
--- a/x11/fltk2/distinfo
+++ b/x11/fltk2/distinfo
@@ -10,3 +10,4 @@ SHA1 (patch-ad) = 21e2f9cb1406c989a83cac37a9ce39ee462f6088
SHA1 (patch-ae) = 8711184bfcbc2882d115e06cb9716c37349b04c3
SHA1 (patch-af) = ff5648e8c6b935bccb77a8afe09d247f3313c76a
SHA1 (patch-ag) = 3e24e2d748bd7cfbe786359032b6357a6fd7da4c
+SHA1 (patch-ah) = 1d4c1b43a4231e633c18e48bc44120056c745ce5
diff --git a/x11/fltk2/patches/patch-ah b/x11/fltk2/patches/patch-ah
new file mode 100644
index 0000000..9c47772
--- /dev/null
+++ b/x11/fltk2/patches/patch-ah
@@ -0,0 +1,13 @@
+$NetBSD$
+
+--- src/filename_list.cxx.orig 2007-06-01 13:13:08 +0000
++++ src/filename_list.cxx
+@@ -64,7 +64,7 @@ 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__)
+ // 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)
Home |
Main Index |
Thread Index |
Old Index