summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2019-10-31 23:40:10 -0400
committerRich Felker <dalias@aerifal.cx>2019-11-02 18:30:56 -0400
commit5127927f4ba449aff16f6a6db0224a24490ff5b9 (patch)
tree8515208296f39884db51083b73f79302439583ab
parentaad3e0c5b88a9455eab8dea94562f2441ecc58c9 (diff)
downloadmusl-5127927f4ba449aff16f6a6db0224a24490ff5b9.tar.gz
add x32 bits/ioctl_fix.h defining time-related sockios macros
these definitions are copied from generic bits/ioctl.h, so that x32 keeps the "_OLD" versions (which are already time64 on x32) when 32-bit archs switch to 64-bit time_t.
-rw-r--r--arch/x32/bits/ioctl_fix.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/x32/bits/ioctl_fix.h b/arch/x32/bits/ioctl_fix.h
new file mode 100644
index 00000000..83b957bd
--- /dev/null
+++ b/arch/x32/bits/ioctl_fix.h
@@ -0,0 +1,4 @@
+#undef SIOCGSTAMP
+#undef SIOCGSTAMPNS
+#define SIOCGSTAMP 0x8906
+#define SIOCGSTAMPNS 0x8907