$NetBSD: patch-dd,v 1.2 2008/09/29 23:17:00 hira Exp $ --- icc/SampleICC-1.3.2-bendian.patch.orig 2008-01-31 17:07:26.000000000 +0900 +++ icc/SampleICC-1.3.2-bendian.patch 2008-09-30 02:57:56.000000000 +0900 @@ -489,7 +489,7 @@ ! } ! } ! } ---- 1,329 ---- +--- 1,332 ---- ! /* ! File: Vetters.cpp ! @@ -575,7 +575,7 @@ ! using namespace std; ! ! #ifndef WIN32 -! #ifdef sun +! #if 1 ! #include ! #else ! #include @@ -584,8 +584,11 @@ ! #include ! #define stat _stat ! #endif +! #ifdef NETBSD +! #include +! #endif ! -! #if defined WIN32 || defined sun +! #if defined WIN32 || defined sun || (defined(NETBSD) && (__NetBSD_Version__ < 400000000)) ! int strerror_r(int errnum, char *str, int strsize) ! { ! const char *errstr = strerror(errnum);