blob: cd48f1d256934ad4ff11a8c131e914bcf3367cbc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
$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 <errno.h>
! #else
! #include <sys/errno.h>
@@ -584,8 +584,11 @@
! #include <string.h>
! #define stat _stat
! #endif
+! #ifdef NETBSD
+! #include <sys/param.h>
+! #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);
|