pkgsrc/lang/jikes/patches/patch-aa
tv ef489b46a2 Make compile on machines that lack <iconv.h> -- without that, jikes forgets
to include <cerrno>, which is needed for the declaration of "errno".
2004-04-30 16:54:44 +00:00

20 lines
533 B
Text

$NetBSD: patch-aa,v 1.4 2004/04/30 16:55:05 tv Exp $
--- 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