1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00

- Fix build after strndup MFC

PR:		132009
Submitted by:	Florian Smeets <flo@kasimir.com>
Approved by:	maintainer timeout
This commit is contained in:
Martin Wilke 2009-03-14 22:43:05 +00:00
parent 7c3207fd94
commit f177347770
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=230094
2 changed files with 17 additions and 7 deletions

View File

@ -56,10 +56,4 @@ post-install:
${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
@${CAT} ${PKGMESSAGE}
.include <bsd.port.pre.mk>
.if ${OSVERSION} >= 800058 || (${OSVERSION} >= 701101 && ${OSVERSION} < 800000)
BROKEN= does not build
.endif
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View File

@ -0,0 +1,16 @@
--- ../src/lib/irs/irpmarshall.c.orig 2009-02-22 15:17:43.000000000 +0000
+++ ../src/lib/irs/irpmarshall.c 2009-02-22 15:25:53.000000000 +0000
@@ -89,6 +89,12 @@
#include "port_after.h"
+#if defined(__FreeBSD__)
+#include <osreldate.h>
+#if __FreeBSD_version >= 800058 || __FreeBSD_version >= 701101 && __FreeBSD_version < 800000
+#define HAVE_STRNDUP 1
+#endif
+#endif
#ifndef HAVE_STRNDUP
static char *strndup(const char *str, size_t len);