aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/setcdboot
diff options
context:
space:
mode:
authorarved <arved@FreeBSD.org>2005-11-06 01:38:51 +0800
committerarved <arved@FreeBSD.org>2005-11-06 01:38:51 +0800
commita647b80791307e5a269d270ed32d36c9694d8fb0 (patch)
tree188a28ac9e5386fb8ecc55e7f4919aba23ed1a6d /sysutils/setcdboot
parent52b440f519cc7facb541bab5a11bad0c551f992d (diff)
downloadfreebsd-ports-gnome-a647b80791307e5a269d270ed32d36c9694d8fb0.tar.gz
freebsd-ports-gnome-a647b80791307e5a269d270ed32d36c9694d8fb0.tar.zst
freebsd-ports-gnome-a647b80791307e5a269d270ed32d36c9694d8fb0.zip
Fix building on -CURRENT.
Unfortunately __FreeBSD_version was not bumped when these functions were added to iso.h, so pick an approximation
Diffstat (limited to 'sysutils/setcdboot')
-rw-r--r--sysutils/setcdboot/files/setcdboot.c3
1 files changed, 3 insertions, 0 deletions
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 <osreldate.h>
+#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)