pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: x11/fltk2 compilation failure
On Wed, Nov 21, 2018 at 12:39:11AM -0500, David H. Gutteridge wrote:
> Well, if you look at where this is coming from, rather than using a
> configure script to detect whether a given OS has particular string
> functions or not, instead they're using hard-coded assumptions. One
> way around this would be the following (which I tested, the package
> built for me, but I haven't actually used the package):
>
> --- fltk/string.h.orig 2007-10-17 16:54:58.000000000 -0400
> +++ fltk/string.h 2018-11-21 00:26:11.531403345 -0500
> @@ -68,12 +68,12 @@
> FL_API extern int strncasecmp(const char *, const char *, size_t);
> #endif
>
> -#if defined(DOXYGEN) || !defined(__linux) && !defined(_WIN32) && !defined(__FreeBSD__) && !defined(__APPLE__)
> +#if defined(DOXYGEN) || !defined(__linux) && !defined(_WIN32) && !defined(__FreeBSD__) && !defined(__APPLE__) && !defined(__NetBSD__)
> FL_API extern int snprintf(char *, size_t, const char *, ...);
> FL_API extern int vsnprintf(char *, size_t, const char *, va_list ap);
> #endif
>
> -#if defined(DOXYGEN) || !defined(__FreeBSD__) && !defined(__APPLE__)
> +#if defined(DOXYGEN) || !defined(__FreeBSD__) && !defined(__APPLE__) && !defined(__NetBSD__)
> FL_API extern size_t strlcat(char *, const char *, size_t);
> FL_API extern size_t strlcpy(char *, const char *, size_t);
> #endif
Thanks. I tested application flpsed which uses fltk and found it working
fine. Request maintainers to take a look and regarding commit.
Mayuresh
Home |
Main Index |
Thread Index |
Old Index