Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/linux/common Do not compile accept4 on i386, ther...
details: https://anonhg.NetBSD.org/src/rev/2a03b0060202
branches: trunk
changeset: 351133:2a03b0060202
user: martin <martin%NetBSD.org@localhost>
date: Fri Feb 03 08:43:02 2017 +0000
description:
Do not compile accept4 on i386, there is no such syscall in Linux.
diffstat:
sys/compat/linux/common/linux_socket.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (32 lines):
diff -r 0f7a16b81080 -r 2a03b0060202 sys/compat/linux/common/linux_socket.c
--- a/sys/compat/linux/common/linux_socket.c Fri Feb 03 08:14:58 2017 +0000
+++ b/sys/compat/linux/common/linux_socket.c Fri Feb 03 08:43:02 2017 +0000
@@ -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 @@
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 @@
return 0;
}
+#endif
+
Home |
Main Index |
Thread Index |
Old Index