diff options
author | anholt <anholt@FreeBSD.org> | 2003-05-10 06:33:20 +0800 |
---|---|---|
committer | anholt <anholt@FreeBSD.org> | 2003-05-10 06:33:20 +0800 |
commit | b639fc13647304cdef8a66221229035f5525216d (patch) | |
tree | 5032e25af5294f451775d8537d5499df6efc137a /games/xtux | |
parent | 22cd4b31df81cbf5c992da3f9f7f2f6de971875f (diff) | |
download | freebsd-ports-graphics-b639fc13647304cdef8a66221229035f5525216d.tar.gz freebsd-ports-graphics-b639fc13647304cdef8a66221229035f5525216d.tar.zst freebsd-ports-graphics-b639fc13647304cdef8a66221229035f5525216d.zip |
Fix build on 4.x, which doesn't have stdint.h.
Reported by: kris (bento)
Diffstat (limited to 'games/xtux')
-rw-r--r-- | games/xtux/files/patch-af | 14 |
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 00000000000..422a5c3738d --- /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); |