summaryrefslogtreecommitdiff
path: root/games/digger/patches
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2011-01-08 13:11:13 +0000
committerobache <obache@pkgsrc.org>2011-01-08 13:11:13 +0000
commit00e185055ff0f3b4e31b01e6f37ef2158341ae13 (patch)
tree28635ab07ca830658c73489cbc7a73baa1ea5416 /games/digger/patches
parent54caacde13bbe97c30adb46c81ef7c7fd267e581 (diff)
downloadpkgsrc-00e185055ff0f3b4e31b01e6f37ef2158341ae13.tar.gz
limits.h is more porable way for get PATH_MAX.
PR#44334.
Diffstat (limited to 'games/digger/patches')
-rw-r--r--games/digger/patches/patch-ad15
1 files changed, 15 insertions, 0 deletions
diff --git a/games/digger/patches/patch-ad b/games/digger/patches/patch-ad
new file mode 100644
index 00000000000..7ddee4b922e
--- /dev/null
+++ b/games/digger/patches/patch-ad
@@ -0,0 +1,15 @@
+$NetBSD: patch-ad,v 1.1 2011/01/08 13:11:13 obache Exp $
+
+* limits.h is more portable for PATH_MAX.
+
+--- def.h.orig 2000-04-13 12:07:32.000000000 +0000
++++ def.h
+@@ -138,7 +138,7 @@ typedef unsigned long int Uint5;
+ #elif defined UNIX && !defined _VGL
+ /* While SDL and other X11 related apps could be runned as ordinary user */
+ #ifdef FREEBSD
+-#include <sys/syslimits.h>
++#include <limits.h>
+ #else /* I donno what is analog of PATH_MAX for Linux :( */
+ #define PATH_MAX 1024
+ #endif