08c3a6
commit 0351c75c5f94134fcec0e778e8cf86d149f8bbfb
08c3a6
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
08c3a6
Date:   Thu Feb 3 16:52:52 2022 -0300
08c3a6
08c3a6
    linux: Fix missing __convert_scm_timestamps (BZ #28860)
08c3a6
    
08c3a6
    Commit 948ce73b31 made recvmsg/recvmmsg to always call
08c3a6
    __convert_scm_timestamps for 64 bit time_t symbol, so adjust it to
08c3a6
    always build it for __TIMESIZE != 64.
08c3a6
    
08c3a6
    It fixes build for architecture with 32 bit time_t support when
08c3a6
    configured with minimum kernel of 5.1.
08c3a6
    
08c3a6
    (cherry-picked from 798d716df71fb23dc89d1d5dba1fc26a1b5c0024)
08c3a6
08c3a6
diff --git a/sysdeps/unix/sysv/linux/convert_scm_timestamps.c b/sysdeps/unix/sysv/linux/convert_scm_timestamps.c
08c3a6
index 5d3c4199e0b32944..953ce97bd2e03849 100644
08c3a6
--- a/sysdeps/unix/sysv/linux/convert_scm_timestamps.c
08c3a6
+++ b/sysdeps/unix/sysv/linux/convert_scm_timestamps.c
08c3a6
@@ -16,9 +16,10 @@
08c3a6
    License along with the GNU C Library; if not, see
08c3a6
    <https://www.gnu.org/licenses/>.  */
08c3a6
 
08c3a6
-#include <kernel-features.h>
08c3a6
+#include <bits/wordsize.h>
08c3a6
+#include <bits/timesize.h>
08c3a6
 
08c3a6
-#ifndef __ASSUME_TIME64_SYSCALLS
08c3a6
+#if __TIMESIZE != 64
08c3a6
 # include <stdint.h>
08c3a6
 # include <string.h>
08c3a6
 # include <sys/socket.h>