add TFD_TIMER_CANCEL_ON_SET that timerfd.h was missing
authorSzabolcs Nagy <nsz@port70.net>
Sun, 5 Mar 2017 23:54:52 +0000 (23:54 +0000)
committerRich Felker <dalias@aerifal.cx>
Sun, 5 Nov 2017 23:40:58 +0000 (18:40 -0500)
linux commit 575b1967e10a1f3038266244d2c7a3ca6b99fed8 moved timerfd
apis to a new uapi header which showed musl was missing this flag.

include/sys/timerfd.h

index 9724d903472c52b5ec4528604816c9601047e317..2794d36a6c2b2b37e8f7f2d4f28c02e85223de06 100644 (file)
@@ -12,6 +12,7 @@ extern "C" {
 #define TFD_CLOEXEC O_CLOEXEC
 
 #define TFD_TIMER_ABSTIME 1
+#define TFD_TIMER_CANCEL_ON_SET (1 << 1)
 
 struct itimerspec;