From 0fcc0b755199b65e442765a6319a789d8161ea29 Mon Sep 17 00:00:00 2001 From: Matt Fischer Date: Mon, 4 Feb 2013 18:30:14 -0600 Subject: [PATCH 2/3] Header fixes 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. * There is no sys/fcntl.h on QNX, only fcntl.h. Most places in dbus already refer to the header from that location, so this change fixes the single place in the code which does not. --- bus/dir-watch-inotify.c | 4 ++++ dbus/sd-daemon.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/bus/dir-watch-inotify.c b/bus/dir-watch-inotify.c index 2e9be98..67f938f 100644 --- a/bus/dir-watch-inotify.c +++ b/bus/dir-watch-inotify.c @@ -27,6 +27,10 @@ #include #include #include +#ifdef __QNX__ +/* QNX's inotify is broken, and requires stdint.h to be manually included first */ +#include +#endif #include #include #include diff --git a/dbus/sd-daemon.c b/dbus/sd-daemon.c index 9c23b91..8596961 100644 --- a/dbus/sd-daemon.c +++ b/dbus/sd-daemon.c @@ -32,7 +32,7 @@ #include #include #include -#include +#include #include #include #include -- 1.8.0.msysgit.0