From dcd60b0b4af68bbe0ed6499ee48997f8dc2a6217 Mon Sep 17 00:00:00 2001 From: Tilman Keskinoz Date: Sat, 5 Nov 2005 17:38:51 +0000 Subject: Fix building on -CURRENT. Unfortunately __FreeBSD_version was not bumped when these functions were added to iso.h, so pick an approximation --- sysutils/setcdboot/files/setcdboot.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sysutils/setcdboot/files/setcdboot.c') diff --git a/sysutils/setcdboot/files/setcdboot.c b/sysutils/setcdboot/files/setcdboot.c index 5f51971f5eb5..187536bf1004 100644 --- a/sysutils/setcdboot/files/setcdboot.c +++ b/sysutils/setcdboot/files/setcdboot.c @@ -61,6 +61,8 @@ struct ptable_ent { #define cdb2off(bno) ((bno) * ISO_DEFAULT_BLOCK_SIZE) /* XXX these should be in the system headers */ +#include +#if __FreeBSD_version < 700003 static __inline int isonum_722(u_char *p) { @@ -72,6 +74,7 @@ isonum_732( u_char *p) { return (*p << 24)|(p[1] << 16)|(p[2] << 8)|p[3]; } +#endif static int dirmatch(const char *path, struct iso_directory_record *dp) -- cgit v1.2.3