blob: aa45c4534653b4e2a6221bcb51d041e476ff8b35 (
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
|
$NetBSD: patch-ze,v 1.6 2014/05/29 07:57:07 adam Exp $
Fixes compilation problem on Solaris/SPARC.
--- perl.h.orig 2014-05-26 13:34:20.000000000 +0000
+++ perl.h
@@ -1265,8 +1265,8 @@ EXTERN_C char *crypt(const char *, const
# endif
#else
# ifdef HAS_SYS_ERRLIST
- extern int sys_nerr;
- extern char *sys_errlist[];
+ extern const int sys_nerr;
+ extern const char *const sys_errlist[];
# ifndef Strerror
# define Strerror(e) \
((e) < 0 || (e) >= sys_nerr ? UNKNOWN_ERRNO_MSG : sys_errlist[e])
@@ -1331,6 +1331,10 @@ EXTERN_C char *crypt(const char *, const
*/
#if defined(I_SYSMODE)
+#if defined(__sun)
+#include <sys/stat.h>
+#include <sys/vnode.h>
+#endif
#include <sys/mode.h>
#endif
|