Commit fc94cf20 authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Linus Torvalds

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

Fixes: 8c709f9a ("y2038: sh: remove timeval/timespec usage from headers")
Fixes: 0768e170 ("net: socket: implement 64-bit timestamps")
Reported-by: default avatarJohn Paul Adrian Glaubitz <>
Signed-off-by: default avatarArnd Bergmann <>
Signed-off-by: default avatarAndrew Morton <>
Tested-by: default avatarJohn Paul Adrian Glaubitz <>
Cc: Yoshinori Sato <>
Cc: Rich Felker <>
Cc: "David S. Miller" <>
Cc: John Paul Adrian Glaubitz <>
Cc: <>
Link: default avatarLinus Torvalds <>
parent 33cd65e7
......@@ -2,6 +2,8 @@
#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)
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment