14 lines
450 B
Diff
14 lines
450 B
Diff
--- src/shared/util.h.orig 2017-03-05 17:12:46.654974564 +0100
|
|
+++ src/shared/util.h 2017-03-05 17:14:11.998704156 +0100
|
|
@@ -1041,7 +1041,11 @@ union inotify_event_buffer {
|
|
uint8_t raw[INOTIFY_EVENT_MAX];
|
|
};
|
|
|
|
+#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
|
|
|
|
int ptsname_malloc(int fd, char **ret);
|