games/acm: unbreak on aarch64

xdr_var_array.c:82:12: fatal error: 'machine/limits.h' file not found
#  include <machine/limits.h>
           ^
1 error generated.

Reported by:	pkg-fallout
This commit is contained in:
Jan Beich 2017-05-12 20:38:45 +00:00
parent b9a670c733
commit 62c23cfee4
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=440711
2 changed files with 5 additions and 12 deletions

View file

@ -23,8 +23,6 @@ CONFIGURE_ENV= ac_cv_lib_Xm_XmCreateBulletinBoard=no \
ac_cv_lib_gdbm_dbm_fetch=no
MAKE_ARGS= prefix=${STAGEDIR}${PREFIX}/ OBVDIR=${STAGEDIR}${DATADIR}/
BROKEN_aarch64= Fails to compile: machine/limits.h not found
OPTIONS_DEFINE= SOUND
SOUND_LIB_DEPENDS= libaudio.so:audio/nas

View file

@ -1,19 +1,14 @@
--- dis/lib/xdr_var_array.c~ Mon May 11 20:58:55 1998
+++ dis/lib/xdr_var_array.c Sun Jul 6 03:21:47 2003
@@ -75,6 +75,12 @@
--- dis/lib/xdr_var_array.c.orig 1998-05-12 03:58:55 UTC
+++ dis/lib/xdr_var_array.c
@@ -75,6 +75,7 @@ static char *rcsid = "$Id: xdr_var_array.c,v 1.2 1998/
#include <stdio.h>
#include <stdlib.h>
+#include <sys/param.h>
+#if __FreeBSD_Version__ >= 500113
+# include <sys/limits.h>
+#else
+# include <machine/limits.h>
+#endif
+#include <limits.h>
#include <rpc/types.h>
#include <rpc/xdr.h>
@@ -104,7 +110,7 @@
@@ -104,7 +105,7 @@ xdr_var_array(register XDR * xdrs, caddr_t * addrp, u_
register u_int nodesize;
c = size;