diff options
author | Matt Fischer <matt.fischer@garmin.com> | 2013-02-04 18:30:14 -0600 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2013-02-21 13:11:19 +0000 |
commit | 0484cf1a3cde1a5993425c938645f762db738033 (patch) | |
tree | 7faede4768da089c5b94441224434002bd74eccb /bus | |
parent | 16e69337a5a2fe6bb2ded42ed618ae55c92621a9 (diff) | |
download | dbus-0484cf1a3cde1a5993425c938645f762db738033.tar.gz |
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 <simon.mcvittie@collabora.co.uk>
Diffstat (limited to 'bus')
-rw-r--r-- | bus/dir-watch-inotify.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bus/dir-watch-inotify.c b/bus/dir-watch-inotify.c index 2e9be988..d684831d 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 <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> |