diff --git a/lib/base/unix.hpp b/lib/base/unix.hpp index 4a4197cbc..d4dcabcac 100644 --- a/lib/base/unix.hpp +++ b/lib/base/unix.hpp @@ -48,6 +48,10 @@ typedef int SOCKET; #define closesocket close #define ioctlsocket ioctl +#ifndef PATH_MAX +# define PATH_MAX 1024 +#endif /* PATH_MAX */ + #ifndef MAXPATHLEN # define MAXPATHLEN PATH_MAX #endif /* MAXPATHLEN */