From 5e411157a1106bf2c1f01b5813a46bdaeb72a73a Mon Sep 17 00:00:00 2001 From: cjs Date: Mon, 13 Oct 1997 20:45:40 +0000 Subject: [PATCH] Ugly hack to make this compile without warnings on alpha. --- usr.sbin/tcpdump/interface.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/usr.sbin/tcpdump/interface.h b/usr.sbin/tcpdump/interface.h index f29f64630d31..a4400a03f34a 100644 --- a/usr.sbin/tcpdump/interface.h +++ b/usr.sbin/tcpdump/interface.h @@ -1,4 +1,4 @@ -/* $NetBSD: interface.h,v 1.3 1997/10/03 19:54:32 christos Exp $ */ +/* $NetBSD: interface.h,v 1.4 1997/10/13 20:45:40 cjs Exp $ */ /* * Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997 @@ -122,9 +122,19 @@ extern int packettype; /* as specified by -T */ #endif #endif +/* + * XXX This is a really ugly hack, but the preprocessor simply doesn't + * know whether it's running on a 32- or 64-bit machine. + */ +#ifdef __alpha__ +#define INT64_FORMAT "%ld" +#define U_INT64_FORMAT "%lu" +#define HEX_INT64_FORMAT "%lx" +#else #define INT64_FORMAT "%qd" #define U_INT64_FORMAT "%qu" #define HEX_INT64_FORMAT "%qx" +#endif extern char *program_name; /* used to generate self-identifying messages */