diff options
| author | Hajimu UMEMOTO <ume@FreeBSD.org> | 2003-02-05 11:05:45 +0000 |
|---|---|---|
| committer | Hajimu UMEMOTO <ume@FreeBSD.org> | 2003-02-05 11:05:45 +0000 |
| commit | 37e7a5a285f6e2dd693e7488982a6a70ee45bb3e (patch) | |
| tree | f7f87787993b9be6d9245ce490f9292907c75eb8 /sys/compat/linux/linux_socket.c | |
| parent | 00482d1917a2ce61179acb1f38922e544d3fb67d (diff) | |
Notes
Diffstat (limited to 'sys/compat/linux/linux_socket.c')
| -rw-r--r-- | sys/compat/linux/linux_socket.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/compat/linux/linux_socket.c b/sys/compat/linux/linux_socket.c index 63f2f8355022..f2837868710e 100644 --- a/sys/compat/linux/linux_socket.c +++ b/sys/compat/linux/linux_socket.c @@ -549,7 +549,15 @@ linux_socket(struct thread *td, struct linux_socket_args *args) * default and some apps depend on this. So, set V6ONLY to 0 * for Linux apps if the sysctl value is set to 1. */ - if (bsd_args.domain == PF_INET6 && retval_socket >= 0 && ip6_v6only) { + if (bsd_args.domain == PF_INET6 && retval_socket >= 0 +#ifndef KLD_MODULE + /* + * XXX: Avoid undefined symbol error with an IPv4 only + * kernel. + */ + && ip6_v6only +#endif + ) { caddr_t sg; int *v6only; |
