Module Name: src
Committed By: martin
Date: Fri Feb 3 08:43:02 UTC 2017
Modified Files:
src/sys/compat/linux/common: linux_socket.c
Log Message:
Do not compile accept4 on i386, there is no such syscall in Linux.
To generate a diff of this commit:
cvs rdiff -u -r1.134 -r1.135 src/sys/compat/linux/common/linux_socket.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/compat/linux/common/linux_socket.c
diff -u src/sys/compat/linux/common/linux_socket.c:1.134 src/sys/compat/linux/common/linux_socket.c:1.135
--- src/sys/compat/linux/common/linux_socket.c:1.134 Thu Feb 2 15:36:55 2017
+++ src/sys/compat/linux/common/linux_socket.c Fri Feb 3 08:43:02 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_socket.c,v 1.134 2017/02/02 15:36:55 christos Exp $ */
+/* $NetBSD: linux_socket.c,v 1.135 2017/02/03 08:43:02 martin Exp $ */
/*-
* Copyright (c) 1995, 1998, 2008 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_socket.c,v 1.134 2017/02/02 15:36:55 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_socket.c,v 1.135 2017/02/03 08:43:02 martin Exp $");
#if defined(_KERNEL_OPT)
#include "opt_inet.h"
@@ -1708,6 +1708,7 @@ linux_sys_accept(struct lwp *l, const st
return (0);
}
+#ifndef __i386__ /* Linux/i386 does not have this syscall */
int
linux_sys_accept4(struct lwp *l, const struct linux_sys_accept4_args *uap, register_t *retval)
{
@@ -1742,3 +1743,5 @@ linux_sys_accept4(struct lwp *l, const s
return 0;
}
+#endif
+