blob: 72259c9a976f1d0e45f71d239c450833b52acb23 (
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.5 2013/05/31 10:55:15 adam Exp $
Fixes compilation problem on Solaris/SPARC.
--- perl.h.orig 2013-05-05 19:32:18.000000000 +0000
+++ perl.h
@@ -1435,8 +1435,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)" : sys_errlist[e])
@@ -1514,6 +1514,10 @@ EXTERN_C char *crypt(const char *, const
*/
#if defined(I_SYSMODE) && !defined(PERL_MICRO)
+#if defined(__sun)
+#include <sys/stat.h>
+#include <sys/vnode.h>
+#endif
#include <sys/mode.h>
#endif
|