MinGW does not define "struct sigevent". As check never references
any field inside this, doing a forward declaration does no harm,
and allows MinGW to understand timer_create().
git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@749
64e312b2-a51f-0410-8e61-
82d0ca0eb02a
*/
typedef int timer_t;
+/*
+ * Do a simple forward declaration in case the struct is not defined.
+ * In the versions of timer_create in libcompat, sigevent is never
+ * used.
+ */
+struct sigevent;
+
int clock_gettime(int clk_id, struct timespec *ts);
int timer_create(int clockid, struct sigevent *sevp, timer_t *timerid);
int timer_settime(timer_t timerid, int flags, const struct itimerspec *new_value, struct itimerspec * old_value);