Skip to content

Commit fc94cf2

Browse files
arndbtorvalds
authored andcommitted
sh: include linux/time_types.h for sockios
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: 8c709f9 ("y2038: sh: remove timeval/timespec usage from headers") Fixes: 0768e17 ("net: socket: implement 64-bit timestamps") Reported-by: John Paul Adrian Glaubitz <[email protected]> Signed-off-by: Arnd Bergmann <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Tested-by: John Paul Adrian Glaubitz <[email protected]> Cc: Yoshinori Sato <[email protected]> Cc: Rich Felker <[email protected]> Cc: "David S. Miller" <[email protected]> Cc: John Paul Adrian Glaubitz <[email protected]> Cc: <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Linus Torvalds <[email protected]>
1 parent 33cd65e commit fc94cf2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arch/sh/include/uapi/asm/sockios.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
#ifndef __ASM_SH_SOCKIOS_H
33
#define __ASM_SH_SOCKIOS_H
44

5+
#include <linux/time_types.h>
6+
57
/* Socket-level I/O control calls. */
68
#define FIOGETOWN _IOR('f', 123, int)
79
#define FIOSETOWN _IOW('f', 124, int)

0 commit comments

Comments
 (0)