DragonFly BSD
DragonFly submit List (threaded) for 2005-05
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

patches for lang/perl5.8 dfport override


From: Chris Pressey <cpressey@xxxxxxxxxxxxxxx>
Date: Mon, 16 May 2005 17:24:59 -0700

Hi,

Patches so that Perl5.8 can build.  I built it by putting these patches
into ports/lang/perl5.8/files.  The proper way to do it would be to make
a dfport override, but since no-one seems to know why my previous
attempt at making one of those doesn't work, this activity is left as an
exercise for the reader.  :)

I'll look into sending these upstream if I can find the time later
(pretty swamped right now...)

-Chris
--- ext/SDBM_File/sdbm/sdbm.c.orig	2005-05-16 16:26:17.000000000 -0700
+++ ext/SDBM_File/sdbm/sdbm.c	2005-05-16 16:26:53.000000000 -0700
@@ -31,14 +31,7 @@
 # include <strings.h>
 #endif
 
-/*
- * externals
- */
-#ifndef WIN32
-#ifndef sun
-extern int errno;
-#endif
-#endif
+#include <errno.h>
 
 extern Malloc_t malloc proto((MEM_SIZE));
 extern Free_t free proto((Malloc_t));
--- ext/SDBM_File/sdbm/util.c.orig	1998-07-19 18:27:14.000000000 -0700
+++ ext/SDBM_File/sdbm/util.c	2005-05-16 16:27:15.000000000 -0700
@@ -5,10 +5,12 @@
 #include "ndbm.h"
 #endif
 
+#include <errno.h>
+
 void
 oops(register char *s1, register char *s2)
 {
-	extern int errno, sys_nerr;
+	extern int sys_nerr;
 	extern char *sys_errlist[];
 	extern char *progname;
 


[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]