aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux/kernel-posix-timers.h
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2021-06-28 09:51:00 +0200
committerFlorian Weimer <fweimer@redhat.com>2021-06-28 09:51:00 +0200
commitd7d0efec47e76c022c3bcb30cdb4b0501d7a9b2a (patch)
treeca691e86a883bcdc427f1d56a6e8f0ded5a01503 /sysdeps/unix/sysv/linux/kernel-posix-timers.h
parent8208be389bce84be0e1c35a3daa0c3467418f921 (diff)
downloadglibc-d7d0efec47e76c022c3bcb30cdb4b0501d7a9b2a.tar
glibc-d7d0efec47e76c022c3bcb30cdb4b0501d7a9b2a.tar.gz
glibc-d7d0efec47e76c022c3bcb30cdb4b0501d7a9b2a.tar.bz2
glibc-d7d0efec47e76c022c3bcb30cdb4b0501d7a9b2a.zip
Linux: Define TIMER_T_WAS_INT_COMPAT in kernel-posix-timers.h
This is almost equivalent to __WORDSIZE == 64 && OTHER_SHLIB_COMPAT (librt, GLIBC_2_1, GLIBC_2_3_3), except that this expression is true for mips64/n64 targets as well, even though those did not undergo the timer_t transition. Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'sysdeps/unix/sysv/linux/kernel-posix-timers.h')
-rw-r--r--sysdeps/unix/sysv/linux/kernel-posix-timers.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/kernel-posix-timers.h b/sysdeps/unix/sysv/linux/kernel-posix-timers.h
index 17fc32d48f..86aa8a2ded 100644
--- a/sysdeps/unix/sysv/linux/kernel-posix-timers.h
+++ b/sysdeps/unix/sysv/linux/kernel-posix-timers.h
@@ -103,3 +103,7 @@ timerid_to_kernel_timer (timer_t timerid)
else
return (kernel_timer_t) ((uintptr_t) timerid);
}
+
+/* New targets use int instead of timer_t. The difference only
+ matters on 64-bit targets. */
+#include <timer_t_was_int_compat.h>