summaryrefslogtreecommitdiffstats
path: root/sys/compat/linux/linux_socket.h
diff options
context:
space:
mode:
authordchagin <dchagin@FreeBSD.org>2017-03-15 17:16:43 +0000
committerdchagin <dchagin@FreeBSD.org>2017-03-15 17:16:43 +0000
commit7c73cbdcbe7d1bfd6fc492b335be6911b46d93f9 (patch)
treed190927e28061d05979a94cea428e10a8943b52e /sys/compat/linux/linux_socket.h
parenta00a0eb737d324c84633738b3410c25b26296b58 (diff)
downloadFreeBSD-src-7c73cbdcbe7d1bfd6fc492b335be6911b46d93f9.zip
FreeBSD-src-7c73cbdcbe7d1bfd6fc492b335be6911b46d93f9.tar.gz
MFC r314643:
Hide Linux socketcall constants under corresponding #ifdef since they are used only in i386 Linuxulator.
Diffstat (limited to 'sys/compat/linux/linux_socket.h')
-rw-r--r--sys/compat/linux/linux_socket.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/compat/linux/linux_socket.h b/sys/compat/linux/linux_socket.h
index 9aff965..f5f7170 100644
--- a/sys/compat/linux/linux_socket.h
+++ b/sys/compat/linux/linux_socket.h
@@ -141,7 +141,6 @@ struct l_ucred {
};
#if defined(__i386__) || (defined(__amd64__) && defined(COMPAT_LINUX32))
-
struct linux_accept_args {
register_t s;
register_t addr;
@@ -150,12 +149,7 @@ struct linux_accept_args {
int linux_accept(struct thread *td, struct linux_accept_args *args);
-#endif /* __i386__ || (__amd64__ && COMPAT_LINUX32) */
-
-
-
/* Operations for socketcall */
-
#define LINUX_SOCKET 1
#define LINUX_BIND 2
#define LINUX_CONNECT 3
@@ -176,6 +170,7 @@ int linux_accept(struct thread *td, struct linux_accept_args *args);
#define LINUX_ACCEPT4 18
#define LINUX_RECVMMSG 19
#define LINUX_SENDMMSG 20
+#endif /* __i386__ || (__amd64__ && COMPAT_LINUX32) */
/* Socket options */
#define LINUX_IP_TOS 1
OpenPOWER on IntegriCloud