* Use our own inotify headers if the system does not have them

* Don't rely on signal.h to include linux/types.h (for __u32 definition)
This commit is contained in:
Justin Maggard
2009-02-11 08:44:24 +00:00
parent 0d3505656d
commit 8de8a8dc50
3 changed files with 14 additions and 2 deletions

View File

@ -138,6 +138,14 @@ echo " * of BSD daemon() */" >> ${CONFIGFILE}
echo "#define USE_DAEMON" >> ${CONFIGFILE}
echo "" >> ${CONFIGFILE}
echo "/* Enable if the system inotify.h exists. Otherwise our own inotify.h will be used. */" >> ${CONFIGFILE}
if [ -f /usr/include/sys/inotify.h ]; then
echo "#define HAVE_INOTIFY_H" >> ${CONFIGFILE}
else
echo "/*#define HAVE_INOTIFY_H*/" >> ${CONFIGFILE}
fi
echo "" >> ${CONFIGFILE}
echo "/* Experimental UPnP Events support. */" >> ${CONFIGFILE}
echo "#define ENABLE_EVENTS" >> ${CONFIGFILE}
echo "" >> ${CONFIGFILE}