Skip to content
Snippets Groups Projects
Commit 531d5677 authored by rswindell's avatar rswindell
Browse files

Always #includes sys/param.h on Unix.

parent b7f7542a
No related branches found
No related tags found
No related merge requests found
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
#include <stdlib.h> /* _fullpath() on Win32 */ #include <stdlib.h> /* _fullpath() on Win32 */
#ifdef __FreeBSD__ /* FreeBSD-specific */ #if defined(__unix__)
#include <sys/param.h> /* PATH_MAX */ #include <sys/param.h> /* PATH_MAX */
#endif #endif
...@@ -60,6 +60,7 @@ extern "C" { ...@@ -60,6 +60,7 @@ extern "C" {
#define ALLFILES "*" /* matches all files in a directory */ #define ALLFILES "*" /* matches all files in a directory */
#include <glob.h> /* POSIX.2 directory pattern matching function */ #include <glob.h> /* POSIX.2 directory pattern matching function */
#define MKDIR(dir) mkdir(dir,0777) #define MKDIR(dir) mkdir(dir,0777)
#define FULLPATH(a,r,l) realpath(r,a) #define FULLPATH(a,r,l) realpath(r,a)
#else #else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment