pkgsrc-Bugs archive

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

Re: pkg/44932: x11/fltk2: patch for DragonFly support



The following reply was made to PR pkg/44932; it has been noted by GNATS.

From: "OBATA Akio" <obache%netbsd.org@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: pkg/44932: x11/fltk2: patch for DragonFly support
Date: Thu, 05 May 2011 17:17:46 +0900

 Not recoded on GNATS.
 
 From: Matthias Rampke <matthias%rampke.de@localhost>
 To: gnats-bugs%netbsd.org@localhost
 Date: Mittwoch, 4. Mai 2011 18:53:03
 Subject: Re: pkg/44932: x11/fltk2: patch for DragonFly support
 
 My bad, I missed that. Sorry!
 
 Corrected patch:
 
 
 diff --git a/x11/fltk2/distinfo b/x11/fltk2/distinfo
 index 8d03ec9..282110f 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) = 0173efb4dc6d1588afbed44668e296ab3895488d
 diff --git a/x11/fltk2/patches/patch-ah b/x11/fltk2/patches/patch-ah
 new file mode 100644
 index 0000000..c1d3ca5
 --- /dev/null
 +++ b/x11/fltk2/patches/patch-ah
 @@ -0,0 +1,21 @@
 +$NetBSD$
 +
 +--- src/filename_list.cxx.orig 2007-06-01 13:13:08 +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,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__) && 
(__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)
 
 
 -- 
 OBATA Akio / obache%NetBSD.org@localhost
 


Home | Main Index | Thread Index | Old Index