$NetBSD$

--- 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
