Using the socket ioctls on arch/sh (and only there) causes build time problems when __kernel_old_timeval/__kernel_old_timespec are not already visible to the compiler. Add an explict include line for the header that defines these structures. Fixes: 8c709f9a0693 ("y2038: sh: remove timeval/timespec usage from headers") Fixes: 0768e17073dc ("net: socket: implement 64-bit timestamps") Reported-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Tested-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> Cc: Yoshinori Sato <ysato@users.sourceforge.jp> Cc: Rich Felker <dalias@libc.org> Cc: "David S. Miller" <davem@davemloft.net> Cc: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> Cc: <stable@vger.kernel.org> Link: http://lkml.kernel.org/r/20200519131327.1836482-1-arnd@arndb.de Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
19 lines
602 B
C
19 lines
602 B
C
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
|
|
#ifndef __ASM_SH_SOCKIOS_H
|
|
#define __ASM_SH_SOCKIOS_H
|
|
|
|
#include <linux/time_types.h>
|
|
|
|
/* Socket-level I/O control calls. */
|
|
#define FIOGETOWN _IOR('f', 123, int)
|
|
#define FIOSETOWN _IOW('f', 124, int)
|
|
|
|
#define SIOCATMARK _IOR('s', 7, int)
|
|
#define SIOCSPGRP _IOW('s', 8, pid_t)
|
|
#define SIOCGPGRP _IOR('s', 9, pid_t)
|
|
|
|
#define SIOCGSTAMP_OLD _IOR('s', 100, struct __kernel_old_timeval) /* Get stamp (timeval) */
|
|
#define SIOCGSTAMPNS_OLD _IOR('s', 101, struct __kernel_old_timespec) /* Get stamp (timespec) */
|
|
|
|
#endif /* __ASM_SH_SOCKIOS_H */
|