sock.c: include <linux/ioctl.h> instead of <sys/ioctl.h> or <ioctls.h>

Include <linux/ioctl.h> for <linux/sockios.h> on alpha, sh, and sh64
architectures because their <asm/sockios.h> use _IOR and _IOW macros
but don't include anything that would define these macros.

Being a wrapper around <linux/ioctl.h>, <sys/ioctl.h> brings
no benefits in this case.  <ioctls.h> simply doesn't exist.

* sock.c [ALPHA || SH || SH64]: Include <linux/ioctl.h>
instead of <sys/ioctl.h> or <ioctls.h>.
This commit is contained in:
Дмитрий Левин 2016-05-13 20:22:18 +00:00
parent fe3de9c601
commit deff569f41

10
sock.c
View File

@ -27,15 +27,11 @@
#include "defs.h"
#include <sys/socket.h>
#if defined ALPHA || defined SH || defined SH64
# include <linux/ioctl.h>
#endif
#include <linux/sockios.h>
#include <arpa/inet.h>
#if defined(ALPHA) || defined(SH) || defined(SH64)
# if defined(HAVE_SYS_IOCTL_H)
# include <sys/ioctl.h>
# elif defined(HAVE_IOCTLS_H)
# include <ioctls.h>
# endif
#endif
#include <net/if.h>
#include "xlat/iffflags.h"