$NetBSD: patch-af,v 1.3 2013/04/26 17:39:23 shattered Exp $ --- config.h.in.orig 2011-11-17 21:46:08.000000000 +0000 +++ config.h.in @@ -2,7 +2,7 @@ #undef WORDS_BIGENDIAN -#if __STDC_VERSION__ < 199901L +#if __STDC_VERSION__ < 199901L && !defined(__func__) # if __GNUC__ >= 2 # define __func__ __FUNCTION__ # else @@ -250,7 +250,7 @@ #include #endif -#if defined(HAVE_DUMA)|defined(HAVE_EFENCE) +#if defined(HAVE_DUMA)||defined(HAVE_EFENCE)||defined(__NetBSD__) #define NO_DLCLOSE #endif @@ -272,7 +272,9 @@ extern void *memmem(const void *haystack /* A lot of structures etc. uses PATH_MAX, NAME_MAX and friends, so we * still #include here */ - +#ifndef NAME_MAX +#define NAME_MAX PATH_MAX +#endif #undef GCC_411_RUNTIMECHECK