diff options
author | Tilman Keskinoz <arved@FreeBSD.org> | 2005-11-05 17:38:51 +0000 |
---|---|---|
committer | Tilman Keskinoz <arved@FreeBSD.org> | 2005-11-05 17:38:51 +0000 |
commit | dcd60b0b4af68bbe0ed6499ee48997f8dc2a6217 (patch) | |
tree | 781c50327d368fc5e7c2978149140d8300ce8749 | |
parent | a6ddc6bdff009811401607b17ae71c93f068bdcd (diff) |
Fix building on -CURRENT.
Unfortunately __FreeBSD_version was not bumped when these functions were
added to iso.h, so pick an approximation
Notes
Notes:
svn path=/head/; revision=147401
-rw-r--r-- | sysutils/setcdboot/files/setcdboot.c | 3 |
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) |