Fix cross-compilation on FreeBSD 4.x (and other OSes) where PRId64 isn't

defined.
This commit is contained in:
dogcow 2005-10-07 01:04:08 +00:00
parent b7218637af
commit 7babc7145c
1 changed files with 6 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: fdisk.c,v 1.93 2005/08/27 22:43:40 uwe Exp $ */
/* $NetBSD: fdisk.c,v 1.94 2005/10/07 01:04:08 dogcow Exp $ */
/*
* Mach Operating System
@ -39,7 +39,7 @@
#include <sys/cdefs.h>
#ifndef lint
__RCSID("$NetBSD: fdisk.c,v 1.93 2005/08/27 22:43:40 uwe Exp $");
__RCSID("$NetBSD: fdisk.c,v 1.94 2005/10/07 01:04:08 dogcow Exp $");
#endif /* not lint */
#define MBRPTYPENAMES
@ -102,6 +102,10 @@ static char lbuf[LBUF];
#define PRIdaddr PRId64
#endif
#ifndef PRId64
#define PRId64 "%lld"
#endif
#ifndef _PATH_DEFDISK
#define _PATH_DEFDISK "/dev/rwd0d"
#endif