$NetBSD: patch-aa,v 1.5 2015/12/29 23:34:49 dholland Exp $ errno.h is not linked to iconv.h. --- src/platform.h.orig Fri Apr 30 12:25:28 2004 +++ src/platform.h @@ -62,6 +62,7 @@ //FIXME: all stat stuff should be included in the platform.cpp file! #include #ifdef STDC_HEADERS +# include STD_LIB_NAME(errno) # include STD_LIB_NAME(stdlib) # include STD_LIB_NAME(stddef) #else // ! STDC_HEADERS @@ -91,7 +92,6 @@ # include #elif defined(HAVE_ICONV_H) # include -# include STD_LIB_NAME(errno) #endif #ifdef HAVE_UNISTD_H