know how it happens to work still ... probably nobody rebuilt libcompat.a.
Fron NetBSD: kern_info_*.c, seemed to be a bug fix.
-# $OpenBSD: Makefile,v 1.3 1996/02/26 23:26:48 niklas Exp $
+# $OpenBSD: Makefile,v 1.4 1996/03/03 05:26:21 mickey Exp $
# $NetBSD: Makefile,v 1.7 1996/02/05 01:58:28 christos Exp $
LIB= compat
NOPIC=
-CPPFLAGS= ${COMPATCPPFLAGS:S@-I.@-I${COMPATREL}.@g}
+CPPFLAGS= ${COMPATCPPFLAGS:S/-I./-I${COMPATREL}./g}
.PATH: ${COMPATREL}${COMPATDIR}
-# $OpenBSD: Makefile.inc,v 1.2 1996/02/26 23:26:49 niklas Exp $
+# $OpenBSD: Makefile.inc,v 1.3 1996/03/03 05:26:22 mickey Exp $
# $NetBSD: Makefile.inc,v 1.3 1996/02/02 20:34:44 mycroft Exp $
#
# NOTE: $S must correspond to the top of the 'sys' tree
COMPATMAKE= \
cd ${COMPATDST} && ${MAKE} -f ${COMPATREL}${COMPATDIR}/Makefile \
- CC="${CC}" CFLAGS="${CFLAGS}" \
+ CC="${CC}" CFLAGS="${CFLAGS:S/-I./-I${COMPATREL}./g}" \
LD="${LD}" \
COMPATCPPFLAGS="${CPPFLAGS}" \
COMPATREL="${COMPATREL}" \
-/* $OpenBSD: kern_info_09.c,v 1.2 1996/02/26 23:26:51 niklas Exp $ */
-/* $NetBSD: kern_info_09.c,v 1.4 1996/02/04 02:02:14 christos Exp $ */
+/* $OpenBSD: kern_info_09.c,v 1.3 1996/03/03 05:26:22 mickey Exp $ */
+/* $NetBSD: kern_info_09.c,v 1.5 1996/02/21 00:10:59 cgd Exp $ */
/*
* Copyright (c) 1982, 1986, 1991, 1993
syscallarg(int) len;
} */ *uap = v;
int name;
+ size_t sz;
name = KERN_DOMAINNAME;
- return (kern_sysctl(&name, 1, SCARG(uap, domainname),
- &SCARG(uap, len), 0, 0, p));
+ sz = SCARG(uap,len);
+ return (kern_sysctl(&name, 1, SCARG(uap, domainname), &sz, 0, 0, p));
}
-/* $Id: kern_info_43.c,v 1.4 1996/02/26 23:26:52 niklas Exp $ */
-
-/* $OpenBSD: kern_info_43.c,v 1.4 1996/02/26 23:26:52 niklas Exp $ */
-/* $NetBSD: kern_info_43.c,v 1.4 1996/02/04 02:02:22 christos Exp $ */
+/* $OpenBSD: kern_info_43.c,v 1.5 1996/03/03 05:26:23 mickey Exp $ */
+/* $NetBSD: kern_info_43.c,v 1.5 1996/02/04 02:02:22 christos Exp $ */
/*
* Copyright (c) 1982, 1986, 1991, 1993
syscallarg(u_int) len;
} */ *uap = v;
int name;
+ size_t sz;
name = KERN_HOSTNAME;
- return (kern_sysctl(&name, 1, SCARG(uap, hostname), &SCARG(uap, len),
- 0, 0, p));
+ sz = SCARG(uap, len);
+ return (kern_sysctl(&name, 1, SCARG(uap, hostname), &sz, 0, 0, p));
}
#define KINFO_PROC (0<<8)