Where to find #include<linux/xxxxx> header files under my MAC

1.5k views Asked by At

I'm using mac,I was trying to use inofity and fanotify so I have to

#include <linux/inotify.h>

But I didn't find a directory named "linux" under /usr/include.

Where can I find it? Thanks!

1

There are 1 answers

0
Ahmad On

Header files in this directory are operating system dependent header files and they are just in Linux. You should search for equivalent of each header file with the same functionalities in other header files and their implementations are not the same.

For example, OS X handles file system change events with an event stream that have completely different implementation compare to iNotify of Linux.