diff -ruN glib-1.2.10.old/gthread/gthread-posix.c glib-1.2.10/gthread/gthread-posix.c --- glib-1.2.10.old/gthread/gthread-posix.c 1999-03-03 08:47:23.000000000 +0000 +++ glib-1.2.10/gthread/gthread-posix.c 2017-05-05 17:12:19.911146418 +0000 @@ -103,6 +103,13 @@ #define G_MICROSEC 1000000 #define G_NANOSEC 1000000000 +#define timespec my_timespec + +struct timespec { + time_t tv_sec; /* seconds */ + long tv_nsec; /* nanoseconds */ +}; + static gboolean g_cond_timed_wait_posix_impl (GCond * cond, GMutex * entered_mutex,