somehow timespec tv_nsec had the wrong type on x86_64... fixed
[musl] / src / internal / libc.h
index 3d09bf6..c83fcaf 100644 (file)
@@ -18,6 +18,7 @@ struct __libc {
        FILE *ofl_head;
        int ofl_lock;
        void (*lockfile)(FILE *);
+       void (*sigtimer)();
 };
 
 
@@ -44,7 +45,8 @@ void __lockfile(FILE *);
 #define UNLOCK(x) (*(x)=0)
 #define CANCELPT(x) (libc.cancelpt ? libc.cancelpt((x)),0 : (void)(x),0)
 #define CANCELPT_BEGIN CANCELPT(1)
-#define CANCELPT_END CANCELPT(0)
+#define CANCELPT_TRY CANCELPT(0)
+#define CANCELPT_END CANCELPT(-1)
 
 extern char **__environ;
 #define environ __environ