diff options
author | Rich Felker <dalias@aerifal.cx> | 2019-07-30 22:11:39 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2019-07-31 20:20:57 -0400 |
commit | 51fd67fcbfa598e2fe1885b517451b84c0bfe3b7 (patch) | |
tree | f1c8e0b65cc7d98ee0c0100276c74f5e78f6dc33 /src/internal | |
parent | 59324c8b0950ee94db846a50554183c845ede160 (diff) | |
download | musl-51fd67fcbfa598e2fe1885b517451b84c0bfe3b7.tar.gz musl-51fd67fcbfa598e2fe1885b517451b84c0bfe3b7.tar.bz2 musl-51fd67fcbfa598e2fe1885b517451b84c0bfe3b7.tar.xz musl-51fd67fcbfa598e2fe1885b517451b84c0bfe3b7.zip |
get/setsockopt: add fallback for new time64 SO_RCVTIMEO/SO_SNDTIMEO
without this, the SO_RCVTIMEO and SO_SNDTIMEO socket options would
stop working on pre-5.1 kernels after time_t is switched to 64-bit and
their values are changed to the new time64 versions.
new code is written such that it's statically unreachable on 64-bit
archs, and on existing 32-bit archs until the macro values are changed
to activate 64-bit time_t.
Diffstat (limited to 'src/internal')
-rw-r--r-- | src/internal/syscall.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/internal/syscall.h b/src/internal/syscall.h index 5db18b05..16edf30a 100644 --- a/src/internal/syscall.h +++ b/src/internal/syscall.h @@ -299,6 +299,13 @@ hidden long __syscall_ret(unsigned long), #define __SC_recvmmsg 19 #define __SC_sendmmsg 20 +#ifndef SO_RCVTIMEO_OLD +#define SO_RCVTIMEO_OLD 20 +#endif +#ifndef SO_SNDTIMEO_OLD +#define SO_SNDTIMEO_OLD 21 +#endif + #ifdef SYS_open #define __sys_open2(x,pn,fl) __syscall2(SYS_open, pn, (fl)|O_LARGEFILE) #define __sys_open3(x,pn,fl,mo) __syscall3(SYS_open, pn, (fl)|O_LARGEFILE, mo) |