summaryrefslogtreecommitdiff
path: root/games/xtux/files/patch-af
diff options
context:
space:
mode:
authorEric Anholt <anholt@FreeBSD.org>2003-05-09 22:33:20 +0000
committerEric Anholt <anholt@FreeBSD.org>2003-05-09 22:33:20 +0000
commit11151fb71e1ad78e89aed8a8d87e8a791aad6905 (patch)
tree83ae0e77ff31f4483f45e49918c59e0b779de88f /games/xtux/files/patch-af
parentupdate to 1.0.11; depend on perl 5.6+ (diff)
Fix build on 4.x, which doesn't have stdint.h.
Reported by: kris (bento)
Notes
Notes: svn path=/head/; revision=80565
Diffstat (limited to 'games/xtux/files/patch-af')
-rw-r--r--games/xtux/files/patch-af14
1 files changed, 14 insertions, 0 deletions
diff --git a/games/xtux/files/patch-af b/games/xtux/files/patch-af
new file mode 100644
index 000000000000..422a5c3738dd
--- /dev/null
+++ b/games/xtux/files/patch-af
@@ -0,0 +1,14 @@
+--- src/common/timing.c.orig Fri May 9 15:21:25 2003
++++ src/common/timing.c Fri May 9 15:35:10 2003
+@@ -1,6 +1,11 @@
+ #include <sys/time.h>
+ #include <unistd.h>
++#if __FreeBSD_version >= 500000
+ #include <stdint.h>
++#else
++#include <limits.h>
++#define INT32_MAX INT_MAX
++#endif
+ #include "timing.h"
+
+ static msec_t tvtol(struct timeval t);