summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2015-03-04 14:38:08 -0500
committerRich Felker <dalias@aerifal.cx>2015-03-04 14:38:08 -0500
commit9c3da8968d5c811452c575b3918fceaf561e5089 (patch)
treef974dfb1e66fcc52b3870dd0ee830b789875d975 /include
parent91a3bd743e91604bde83e9ce1ad3a2e2d4ff0f0f (diff)
downloadmusl-9c3da8968d5c811452c575b3918fceaf561e5089.tar.gz
declare incomplete type struct itimerspec in timerfd.h
normally time.h would provide a definition for this struct, but depending on the feature test macros in use, it may not be exposed, leading to warnings when it's used in the function prototypes.
Diffstat (limited to 'include')
-rw-r--r--include/sys/timerfd.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sys/timerfd.h b/include/sys/timerfd.h
index df645fe8..9724d903 100644
--- a/include/sys/timerfd.h
+++ b/include/sys/timerfd.h
@@ -13,6 +13,8 @@ extern "C" {
#define TFD_TIMER_ABSTIME 1
+struct itimerspec;
+
int timerfd_create(int, int);
int timerfd_settime(int, int, const struct itimerspec *, struct itimerspec *);
int timerfd_gettime(int, struct itimerspec *);