summaryrefslogtreecommitdiff
path: root/net/lmule/patches/patch-aa
blob: 255fb84dce5fbe89b7e558c32362cb5dbb84b909 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
$NetBSD: patch-aa,v 1.1.1.1 2003/03/31 20:58:41 jmmv Exp $

--- src/CFile.cpp.orig	Sun Mar 23 00:13:37 2003
+++ src/CFile.cpp	Sun Mar 23 00:16:34 2003
@@ -53,6 +53,10 @@
     #define   NOMCX
 #endif
 
+#if !defined(USG) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__FreeBSD__)
+#include <sys/param.h>
+#endif
+
 #elif (defined(__UNIX__) || defined(__GNUWIN32__))
     #include  <unistd.h>
     #ifdef __GNUWIN32__
@@ -116,7 +120,11 @@
 #endif
 
 #ifndef MAX_PATH
-    #define MAX_PATH 512
+#	if (defined(BSD) && (BSD >= 199103))
+#		define MAX_PATH MAXPATHLEN
+#	else
+#		define MAX_PATH 512
+#	endif
 #endif
 
 // some broken compilers don't have 3rd argument in open() and creat()