-/* $OpenBSD: if.c,v 1.77 2021/01/16 17:42:52 claudio Exp $ */
+/* $OpenBSD: if.c,v 1.78 2021/11/29 06:39:23 deraadt Exp $ */
/* $NetBSD: if.c,v 1.16.4.2 1996/06/07 21:46:46 thorpej Exp $ */
/*
* SUCH DAMAGE.
*/
-#include <sys/param.h> /* roundup() */
#include <sys/types.h>
#include <sys/ioctl.h>
#include <sys/protosw.h>
#include <unistd.h>
#include <util.h>
+#define roundup(x, y) ((((x)+((y)-1))/(y))*(y))
+
#include "netstat.h"
static void print_addr(struct sockaddr *, struct sockaddr **, struct if_data *);
-/* $OpenBSD: if.c,v 1.26 2021/01/18 00:49:09 mortimer Exp $ */
+/* $OpenBSD: if.c,v 1.27 2021/11/29 06:39:23 deraadt Exp $ */
/*
* Copyright (c) 2004 Markus Friedl <markus@openbsd.org>
*
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <sys/param.h> /* roundup */
+#include <sys/types.h>
#include <sys/signal.h>
#include <sys/socket.h>
#include <sys/sysctl.h>
#include <string.h>
#include <unistd.h>
+#define roundup(x, y) ((((x)+((y)-1))/(y))*(y))
+
#include "systat.h"
static enum state { BOOT, TIME, RUN } state = TIME;