diff options
author | gahr <gahr@FreeBSD.org> | 2010-02-09 23:13:28 +0800 |
---|---|---|
committer | gahr <gahr@FreeBSD.org> | 2010-02-09 23:13:28 +0800 |
commit | 8d43441c6e4df37fb44e5289778991be03079a2b (patch) | |
tree | f2917525d078df4e69ea45a8b2790c9682aea158 /x11-toolkits | |
parent | c9bc21d7217c712fcd4affcb0a5b376f3066e9cf (diff) | |
download | freebsd-ports-gnome-8d43441c6e4df37fb44e5289778991be03079a2b.tar.gz freebsd-ports-gnome-8d43441c6e4df37fb44e5289778991be03079a2b.tar.zst freebsd-ports-gnome-8d43441c6e4df37fb44e5289778991be03079a2b.zip |
- Fix mismatching declaration
PR: 143638
Submitted by: Dominic Fandrey <kamikaze@bsdforen.de>
Diffstat (limited to 'x11-toolkits')
-rw-r--r-- | x11-toolkits/fltk/Makefile | 2 | ||||
-rw-r--r-- | x11-toolkits/fltk/files/patch-src_filename_list.cxx | 11 |
2 files changed, 13 insertions, 0 deletions
diff --git a/x11-toolkits/fltk/Makefile b/x11-toolkits/fltk/Makefile index 2dad8ea4036f..585acd39bc78 100644 --- a/x11-toolkits/fltk/Makefile +++ b/x11-toolkits/fltk/Makefile @@ -62,6 +62,8 @@ post-patch: ${REINPLACE_CMD} -e 's|LINKSHARED)|LINKSHARED) ../src/fl_gtk.o|' \ ${WRKSRC}/fluid/Makefile ${REINPLACE_CMD} -e 's|cat1|man1|g;s|cat3|man3|g' ${WRKSRC}/documentation/Makefile +post-configure: + ${REINPLACE_CMD} -e '78s|=|= -L../src|' ${WRKSRC}/makeinclude .if defined(NOPORTDOCS) ${REINPLACE_CMD} -e 's|test ||' ${WRKSRC}/Makefile ${REINPLACE_CMD} -e '234,238d' ${WRKSRC}/documentation/Makefile diff --git a/x11-toolkits/fltk/files/patch-src_filename_list.cxx b/x11-toolkits/fltk/files/patch-src_filename_list.cxx new file mode 100644 index 000000000000..2872c8fa4fc1 --- /dev/null +++ b/x11-toolkits/fltk/files/patch-src_filename_list.cxx @@ -0,0 +1,11 @@ +--- src/filename_list.cxx.orig 2010-02-09 11:00:46.000000000 +0100 ++++ src/filename_list.cxx 2010-02-09 11:35:23.000000000 +0100 +@@ -54,7 +54,7 @@ + Fl_File_Sort_F *sort) { + #ifndef HAVE_SCANDIR + int n = scandir(d, list, 0, sort); +-#elif defined(__hpux) || defined(__CYGWIN__) ++#elif defined(__hpux) || defined(__CYGWIN__) || defined(__FreeBSD__) + // HP-UX, Cygwin define the comparison function like this: + int n = scandir(d, list, 0, (int(*)(const dirent **, const dirent **))sort); + #elif defined(__osf__) |