pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/x11/fltk2 fltk2: don't provide declarations if we know...
details: https://anonhg.NetBSD.org/pkgsrc/rev/c4cbc6a0dcf4
branches: trunk
changeset: 387578:c4cbc6a0dcf4
user: maya <maya%pkgsrc.org@localhost>
date: Wed Nov 21 08:23:22 2018 +0000
description:
fltk2: don't provide declarations if we know they exist.
Fixes build failure:
https://mail-index.netbsd.org/pkgsrc-users/2018/11/16/msg027701.html
diffstat:
x11/fltk2/distinfo | 3 ++-
x11/fltk2/patches/patch-fltk_string.h | 34 ++++++++++++++++++++++++++++++++++
2 files changed, 36 insertions(+), 1 deletions(-)
diffs (53 lines):
diff -r 0adf19ed2808 -r c4cbc6a0dcf4 x11/fltk2/distinfo
--- a/x11/fltk2/distinfo Wed Nov 21 07:15:22 2018 +0000
+++ b/x11/fltk2/distinfo Wed Nov 21 08:23:22 2018 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.10 2016/12/21 13:40:24 joerg Exp $
+$NetBSD: distinfo,v 1.11 2018/11/21 08:23:22 maya Exp $
SHA1 (fltk-2.0.x-r6129.tar.bz2) = fafb9e5309127e5dd3e127ecf83f410312a427b5
RMD160 (fltk-2.0.x-r6129.tar.bz2) = a43d9603fdbf12fd0deefbad7e5ef5dd8f0a1c6f
@@ -12,4 +12,5 @@
SHA1 (patch-af) = ff5648e8c6b935bccb77a8afe09d247f3313c76a
SHA1 (patch-ag) = de60c4a5a2c9ad28e35eebe83a8f06fc298be748
SHA1 (patch-ah) = 47eddca382caa8ecc0b393609990290fd18dea7a
+SHA1 (patch-fltk_string.h) = cc3614127bbf3a47b8c65b34941af9ae41434dff
SHA1 (patch-fluid_FluidType.h) = 9fe195316f12794c0fc1a38f47a48e1168437153
diff -r 0adf19ed2808 -r c4cbc6a0dcf4 x11/fltk2/patches/patch-fltk_string.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/fltk2/patches/patch-fltk_string.h Wed Nov 21 08:23:22 2018 +0000
@@ -0,0 +1,34 @@
+$NetBSD: patch-fltk_string.h,v 1.1 2018/11/21 08:23:22 maya Exp $
+
+Don't provide a declaration if we already detected one.
+
+--- fltk/string.h.orig 2007-10-17 20:54:58.000000000 +0000
++++ fltk/string.h
+@@ -43,6 +43,7 @@
+ # include <string.h>
+ # include <stdarg.h> /* for va_list */
+ # include <stdio.h> /* for sprintf, vsprintf, snprintf and vsnprintf */
++# include <config.h>
+
+ /* Windows has equivalent functions, but being Microsoft they added
+ gratuitoius changes to the names to stop code from being portable: */
+@@ -68,13 +69,17 @@ FL_API extern int strcasecmp(const char
+ FL_API extern int strncasecmp(const char *, const char *, size_t);
+ #endif
+
+-#if defined(DOXYGEN) || !defined(__linux) && !defined(_WIN32) && !defined(__FreeBSD__) && !defined(__APPLE__)
++#if !HAVE_SNPRINTF && defined(DOXYGEN)
+ FL_API extern int snprintf(char *, size_t, const char *, ...);
++#endif
++#if !HAVE_VSNPRINTF && defined(DOXYGEN)
+ FL_API extern int vsnprintf(char *, size_t, const char *, va_list ap);
+ #endif
+
+-#if defined(DOXYGEN) || !defined(__FreeBSD__) && !defined(__APPLE__)
++#if !HAVE_STRLCAT && defined(DOXYGEN)
+ FL_API extern size_t strlcat(char *, const char *, size_t);
++#endif
++#if !HAVE_STRLCPY && defined(DOXYGEN)
+ FL_API extern size_t strlcpy(char *, const char *, size_t);
+ #endif
+
Home |
Main Index |
Thread Index |
Old Index