From 0f5c53085722743d2438cb5277b3f4f47c75231a Mon Sep 17 00:00:00 2001 From: kientzle Date: Fri, 30 Jul 2004 02:59:58 +0000 Subject: Improve portability to FreeBSD 4. Thanks to: Barry Bouwsma --- usr.bin/tar/bsdtar_platform.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/usr.bin/tar/bsdtar_platform.h b/usr.bin/tar/bsdtar_platform.h index 623dd47..f49a0e7 100644 --- a/usr.bin/tar/bsdtar_platform.h +++ b/usr.bin/tar/bsdtar_platform.h @@ -43,8 +43,10 @@ #define HAVE_CHFLAGS 1 #define ARCHIVE_STAT_MTIME_NANOS(st) (st)->st_mtimespec.tv_nsec +#if __FreeBSD_version >= 450002 /* nl_langinfo introduced */ /* nl_langinfo supports D_MD_ORDER (FreeBSD extension) */ #define HAVE_NL_LANGINFO_D_MD_ORDER 1 +#endif #if __FreeBSD__ > 4 #define HAVE_GETOPT_LONG 1 @@ -65,6 +67,10 @@ #define BSDTAR_FILESIZE_PRINTF "%llu" #endif +#if __FreeBSD__ < 5 +typedef int64_t id_t; +#endif + #endif /* __FreeBSD__ */ /* No non-FreeBSD platform will have __FBSDID, so just define it here. */ -- cgit v1.1