svn commit: r314643 - head/sys/compat/linux
Dmitry Chagin
dchagin at FreeBSD.org
Sat Mar 4 06:54:06 UTC 2017
Author: dchagin
Date: Sat Mar 4 06:54:05 2017
New Revision: 314643
URL: https://svnweb.freebsd.org/changeset/base/314643
Log:
Hide Linux socketcall constants under corresponding #ifdef since
they are used only in i386 Linuxulator.
MFC after: 1 week
Modified:
head/sys/compat/linux/linux_socket.h
Modified: head/sys/compat/linux/linux_socket.h
==============================================================================
--- head/sys/compat/linux/linux_socket.h Sat Mar 4 06:19:41 2017 (r314642)
+++ head/sys/compat/linux/linux_socket.h Sat Mar 4 06:54:05 2017 (r314643)
@@ -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, stru
#define LINUX_ACCEPT4 18
#define LINUX_RECVMMSG 19
#define LINUX_SENDMMSG 20
+#endif /* __i386__ || (__amd64__ && COMPAT_LINUX32) */
/* Socket options */
#define LINUX_IP_TOS 1
More information about the svn-src-head
mailing list