diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2015-01-18 20:05:21 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2015-01-18 20:05:21 +0000 |
commit | 47f085f09555a1761e0050f1dc0e09fac681414e (patch) | |
tree | 5f113dcb0176620e8cc178a699c8a5a42a08042b /usr.bin/kdump/mksubr | |
parent | 8abc848728add5d90bdad5da8cf27b79b6644340 (diff) |
Eliminate a gcc warnings by not #defining _KERNEL when pulling in
<sys/socket.h>: it doesn't expose anything kdump cares about.
Also, COMPAT_43 is dead
warning noted by deraadt@
Diffstat (limited to 'usr.bin/kdump/mksubr')
-rw-r--r-- | usr.bin/kdump/mksubr | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/usr.bin/kdump/mksubr b/usr.bin/kdump/mksubr index 8eb431279b0..7dcc42cf215 100644 --- a/usr.bin/kdump/mksubr +++ b/usr.bin/kdump/mksubr @@ -1,5 +1,5 @@ #!/bin/sh -# $OpenBSD: mksubr,v 1.25 2014/12/11 05:44:12 guenther Exp $ +# $OpenBSD: mksubr,v 1.26 2015/01/18 20:05:20 guenther Exp $ # # Copyright (c) 2006 David Kirchner <dpk@dpk.net> # @@ -269,10 +269,7 @@ cat <<_EOF_ #undef _KERNEL #include <sys/wait.h> #include <sys/proc.h> -#define _KERNEL -#define COMPAT_43 #include <sys/socket.h> -#undef _KERNEL #include <netinet/in.h> #include <sys/param.h> #include <sys/mount.h> |