From: Matt Fischer Date: Tue, 5 Feb 2013 00:30:14 +0000 (-0600) Subject: Fix inotify usage for QNX X-Git-Tag: dbus-1.7.0~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0484cf1a3cde1a5993425c938645f762db738033;p=thirdparty%2Fdbus.git Fix inotify usage for QNX 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 --- diff --git a/bus/dir-watch-inotify.c b/bus/dir-watch-inotify.c index 2e9be9887..d684831de 100644 --- a/bus/dir-watch-inotify.c +++ b/bus/dir-watch-inotify.c @@ -22,11 +22,15 @@ * */ +/* Be careful, this file is not Linux-only: QNX also uses it */ + #include #include #include #include +/* QNX's inotify is broken, and requires stdint.h to be manually included first */ +#include #include #include #include