mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-04 02:08:49 -04:00
29 lines
750 B
Plaintext
29 lines
750 B
Plaintext
$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
|
|
|