summaryrefslogtreecommitdiff
path: root/sys/compat/linux/common/linux_socketcall.c
diff options
context:
space:
mode:
authornjoly <njoly@NetBSD.org>2008-07-03 14:07:09 +0000
committernjoly <njoly@NetBSD.org>2008-07-03 14:07:09 +0000
commit153124ee21fc19eb74e09e9cb5aaaafd25915828 (patch)
tree3327a7a40578477199551310f4ef0998dede3c88 /sys/compat/linux/common/linux_socketcall.c
parent54745077e8070ef5ababecc434b068f2af90f6e0 (diff)
Fix SIOCGIFCONF ioctl for 64bit platforms. Add a new linux_ifreq
structure and linux_getifconf function (cleaned up version from compat_ifconf). While here, update linux_getifhwaddr to use the new structure. Ok by christos.
Diffstat (limited to 'sys/compat/linux/common/linux_socketcall.c')
-rw-r--r--sys/compat/linux/common/linux_socketcall.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/compat/linux/common/linux_socketcall.c b/sys/compat/linux/common/linux_socketcall.c
index 9f3401fc7db..8cced212463 100644
--- a/sys/compat/linux/common/linux_socketcall.c
+++ b/sys/compat/linux/common/linux_socketcall.c
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_socketcall.c,v 1.38 2008/04/28 20:23:44 martin Exp $ */
+/* $NetBSD: linux_socketcall.c,v 1.39 2008/07/03 14:07:09 njoly Exp $ */
/*-
* Copyright (c) 1995, 1998 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_socketcall.c,v 1.38 2008/04/28 20:23:44 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_socketcall.c,v 1.39 2008/07/03 14:07:09 njoly Exp $");
#include <sys/param.h>
#include <sys/kernel.h>
@@ -55,6 +55,8 @@ __KERNEL_RCSID(0, "$NetBSD: linux_socketcall.c,v 1.38 2008/04/28 20:23:44 martin
#include <sys/syscallargs.h>
+#include <compat/sys/socket.h>
+
#include <compat/linux/common/linux_types.h>
#include <compat/linux/common/linux_util.h>
#include <compat/linux/common/linux_signal.h>