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>
This commit is contained in:
Matt Fischer 2013-02-04 18:30:14 -06:00 committed by Simon McVittie
parent 16e69337a5
commit 0484cf1a3c

View file

@ -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>