Fix cross-compilation on FreeBSD 4.x (and other OSes) where PRId64 isn't
defined.
This commit is contained in:
parent
b7218637af
commit
7babc7145c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue