#include <mntent.h>
#include <sys/inotify.h>
#include <sys/statfs.h>
+#include <sys/sysmacros.h>
#include "macro.h"
#include "missing.h"
uint8_t raw[INOTIFY_EVENT_MAX];
};
-#define laccess(path, mode) faccessat(AT_FDCWD, (path), (mode), AT_SYMLINK_NOFOLLOW)
+#ifdef __GLIBC__
+ #define laccess(path, mode) faccessat(AT_FDCWD, (path), (mode), AT_SYMLINK_NOFOLLOW)
+#else
+ #define laccess(path, mode) faccessat(AT_FDCWD, (path), (mode), 0)
+#endif
// UNNEEDED int ptsname_malloc(int fd, char **ret);