1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-28 10:08:24 +00:00
freebsd-ports/lang/swi-pl/files/patch-src_mkvmi.c
Wesley Shields 50f779e46e - Update to 5.6.64
PR:		ports/133578
Submitted by:	Kazumasa Kotani <freebsd@cuma.sakura.ne.jp>
Approved by:	maintainer timeout
2009-05-01 20:04:10 +00:00

30 lines
655 B
C

--- src/mkvmi.c.orig 2009-01-23 13:50:02.000000000 -0500
+++ src/mkvmi.c 2009-04-30 16:30:34.948715970 -0400
@@ -31,6 +31,9 @@
#else
#include <unistd.h>
#endif
+#if defined(__FreeBSD__)
+#include <osreldate.h>
+#endif
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
This program creates pl-codetable.c, pl-jumptable.ic and pl-vmi.h from
@@ -97,7 +100,7 @@
return NULL;
}
-
+#if (__FreeBSD_version >= 800000 && __FreeBSD_version <= 800057) || __FreeBSD_version < 701101
static char *
strndup(const char *in, size_t len)
{ char *s = malloc(len+1);
@@ -107,6 +110,7 @@
return s;
}
+#endif
static int