summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2014-02-17 14:37:09 -0500
committerJulien Danjou <julien@danjou.info>2014-02-18 14:13:58 +0100
commitea9f7e4cc6fd8c08d175ed7774ed2c5bd11c8ef0 (patch)
tree177b135f37ea7e505c39b0e327c96001d80353b4
parenta7e49fefde18ea8d5bada8096d32f23bcfb5a6dc (diff)
downloadstartup-notification-ea9f7e4cc6fd8c08d175ed7774ed2c5bd11c8ef0.tar.gz
Add include of <sys/select.h> for previous patch
Unfortunately while the standard says that <sys/types.h> is the correct header to get suseconds_t, at least with glibc, that requires -DXOPEN_SOURCE. Which is problematic for a public header, because then all *users* of startup-notification will be required to define that. Poking around a bit, it looks like at least with glibc, <sys/select.h> will give us an unconditional define. Signed-off-by: Julien Danjou <julien@danjou.info>
-rw-r--r--libsn/sn-monitor.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libsn/sn-monitor.h b/libsn/sn-monitor.h
index 2f639df..cea4e12 100644
--- a/libsn/sn-monitor.h
+++ b/libsn/sn-monitor.h
@@ -28,6 +28,7 @@
#define __SN_MONITOR_H__
#include <libsn/sn-common.h>
+#include <sys/select.h>
SN_BEGIN_DECLS