Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

- Fixed define for max path lengths.

SVN Rev: 3282
  • Loading branch information...
commit 91bbe1e528d5d377ec2a3123fabe1f7481d47f21 1 parent f05d6af
@derickr authored
Showing with 15 additions and 11 deletions.
  1. +15 −11 src/usefulstuff.c
View
26 src/usefulstuff.c
@@ -18,19 +18,23 @@
#include <stdlib.h>
#include <string.h>
+
#ifndef WIN32
-#include <unistd.h>
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <sys/time.h>
-#include <sys/resource.h>
-#include <sys/file.h>
+# include <unistd.h>
+# include <sys/types.h>
+# include <sys/socket.h>
+# include <sys/time.h>
+# include <sys/resource.h>
+# include <sys/file.h>
+# ifndef PATH_MAX
+# define PATH_MAX 256
+# endif
#else
-#define PATH_MAX MAX_PATH
-#include <winsock2.h>
-#include <io.h>
-#include "win32/time.h"
-#include <process.h>
+# define PATH_MAX MAX_PATH
+# include <winsock2.h>
+# include <io.h>
+# include "win32/time.h"
+# include <process.h>
#endif
#include "xdebug_mm.h"
#include "xdebug_str.h"
Please sign in to comment.
Something went wrong with that request. Please try again.