1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-28 10:08:24 +00:00
freebsd-ports/net/lmule/files/patch-src::CFile.cpp
Mario Sergio Fujikawa Ferreira 538ec70569 New port lmule version 1.1.11.b: Port of eMule eDonkey P2P client
using wxWindows class library
2003-03-23 04:46:03 +00:00

27 lines
606 B
C++

--- 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()