22 lines
574 B
Text
22 lines
574 B
Text
$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 <sys/stat.h>
|
|
#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 <unicode/ucnv.h>
|
|
#elif defined(HAVE_ICONV_H)
|
|
# include <iconv.h>
|
|
-# include STD_LIB_NAME(errno)
|
|
#endif
|
|
|
|
#ifdef HAVE_UNISTD_H
|