From: Rich Felker Date: Wed, 4 Mar 2015 19:38:08 +0000 (-0500) Subject: declare incomplete type struct itimerspec in timerfd.h X-Git-Tag: v1.1.7~20 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=9c3da8968d5c811452c575b3918fceaf561e5089;p=oweals%2Fmusl.git 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. --- 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 *);