blob: 9a93a9788987a84633d3d01f39f666496e3792f9 (
plain) (
blame)
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
|
--- 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(__unix__) || defined(unix)) && !defined(USG)
+#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()
|