inotify is available only on Linux

This commit is contained in:
Marco Grunert 2020-11-20 19:02:26 +01:00 committed by Arun Prakash Jana
parent b4b3ee4868
commit 6f7a4f723b
No known key found for this signature in database
GPG key ID: A75979F35C080412

View file

@ -35,8 +35,10 @@
#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