diff options
author | Jo-Philipp Wich <jo@mein.io> | 2022-03-20 23:34:56 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-20 23:34:56 +0100 |
commit | a88aca97633c2ec58987a76a5a8d910c37680e07 (patch) | |
tree | dee32d4bba166995bdb32d4cf8f1fcad8bcead4d /lib/fs.c | |
parent | 807060a5d2d40113d9d78bf9e3866efb3de4c442 (diff) | |
parent | ab46fdfe742e754a8a56207ce1fc5653085696ad (diff) |
Merge pull request #52 from jow-/portability-fixes
Portability fixes for macOS
Diffstat (limited to 'lib/fs.c')
-rw-r--r-- | lib/fs.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -21,13 +21,16 @@ #include <unistd.h> #include <sys/stat.h> #include <sys/types.h> -#include <sys/sysmacros.h> #include <grp.h> #include <pwd.h> #include <glob.h> #include <fnmatch.h> #include <limits.h> +#ifndef __APPLE__ +#include <sys/sysmacros.h> /* major(), minor() */ +#endif + #include "ucode/module.h" #define err_return(err) do { last_error = err; return NULL; } while(0) |