aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/tar/bsdtar_platform.h
diff options
context:
space:
mode:
authorTim Kientzle <kientzle@FreeBSD.org>2004-07-30 02:59:58 +0000
committerTim Kientzle <kientzle@FreeBSD.org>2004-07-30 02:59:58 +0000
commit92371d176fe7a98e2daede556c1148f3463c6522 (patch)
treee134ef884a1556913719590f58b559fed73c805e /usr.bin/tar/bsdtar_platform.h
parentcfdb7dd69b95c60c1a8db4cb033ea2c6d8b07136 (diff)
Improve portability to FreeBSD 4.
Thanks to: Barry Bouwsma
Notes
Notes: svn path=/head/; revision=132868
Diffstat (limited to 'usr.bin/tar/bsdtar_platform.h')
-rw-r--r--usr.bin/tar/bsdtar_platform.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/usr.bin/tar/bsdtar_platform.h b/usr.bin/tar/bsdtar_platform.h
index 623dd47069ae..f49a0e7833a0 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. */