Fix inotify usage for QNX
authorMatt Fischer <matt.fischer@garmin.com>
Tue, 5 Feb 2013 00:30:14 +0000 (18:30 -0600)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Thu, 21 Feb 2013 13:11:19 +0000 (13:11 +0000)
QNX's copy of sys/inotify.h is broken, and doesn't include
stdint.h even though it refers to types from it.  Therefore,
it must be included manually.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=61176
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
bus/dir-watch-inotify.c

index 2e9be98..d684831 100644 (file)
  *
  */
 
+/* Be careful, this file is not Linux-only: QNX also uses it */
+
 #include <config.h>
 
 #include <stdlib.h>
 #include <unistd.h>
 #include <fcntl.h>
+/* QNX's inotify is broken, and requires stdint.h to be manually included first */
+#include <stdint.h>
 #include <sys/inotify.h>
 #include <sys/types.h>
 #include <signal.h>