]> Sergey Matveev's repositories - nnn.git/commitdiff
inotify is available only on Linux
authorMarco Grunert <marco@grunert.dev>
Fri, 20 Nov 2020 18:02:26 +0000 (19:02 +0100)
committerArun Prakash Jana <engineerarun@gmail.com>
Sat, 21 Nov 2020 16:02:18 +0000 (21:32 +0530)
src/nnn.c

index 59bfb00187cc26e2f86da2ed1580cbfe9ba85a36..a4890c27962fe94fcb3535291f7d0cb9c722e785 100644 (file)
--- a/src/nnn.c
+++ b/src/nnn.c
 #if defined(__arm__) || defined(__i386__)
 #define _FILE_OFFSET_BITS 64 /* Support large files on 32-bit */
 #endif
+#if defined(__linux__)
 #include <sys/inotify.h>
 #define LINUX_INOTIFY
+#endif
 #if !defined(__GLIBC__)
 #include <sys/types.h>
 #endif