Module Name:    src
Committed By:   pgoyette
Date:           Thu Nov  3 06:22:29 UTC 2016

Modified Files:
        src/sys/compat/common: Makefile.sysio

Log Message:
if_43.o gets included from libcompat automatically, due to two calls
to compat_cvtcmd() in if.c.  Ideally, if.c would be modified to have
a pointer to a no-op compat_cvtcmd() and that pointer would get
replaced by compat_modcmd(MODULE_CMD_INIT, ...) code.  But for now,
just don't include it in the compat module at all.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/compat/common/Makefile.sysio

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/compat/common/Makefile.sysio
diff -u src/sys/compat/common/Makefile.sysio:1.1 src/sys/compat/common/Makefile.sysio:1.2
--- src/sys/compat/common/Makefile.sysio:1.1	Thu Nov  3 04:26:58 2016
+++ src/sys/compat/common/Makefile.sysio	Thu Nov  3 06:22:29 2016
@@ -1,10 +1,20 @@
-#	$NetBSD: Makefile.sysio,v 1.1 2016/11/03 04:26:58 riastradh Exp $
+#	$NetBSD: Makefile.sysio,v 1.2 2016/11/03 06:22:29 pgoyette Exp $
 
 # Sources for syscall and ioctl compatibility across the versions.
 
 # Compatibility code for 4.3BSD
 SRCS+=	kern_exit_43.c kern_info_43.c kern_resource_43.c kern_sig_43.c \
-	tty_43.c uipc_syscalls_43.c vfs_syscalls_43.c vm_43.c if_43.c
+	tty_43.c uipc_syscalls_43.c vfs_syscalls_43.c vm_43.c
+
+/*
+ * if_43.o gets included from libcompat automatically, due to two calls
+ * to compat_cvtcmd() in if.c.  Ideally, if.c would be modified to have
+ * a pointer to a no-op compat_cvtcmd() and that pointer would get
+ * replaced by compat_mnodcmd(MODULE_CMD_INIT, ...) code.  But for now,
+ * just don't include it in the compat module at all.
+
+SRCS+=	if_43.c
+ */
 
 # Compatibility code for NetBSD 0.9
 SRCS+=	kern_info_09.c

Reply via email to