summaryrefslogtreecommitdiffstats
path: root/usr.bin/tar
diff options
context:
space:
mode:
authorkientzle <kientzle@FreeBSD.org>2006-07-30 18:34:40 +0000
committerkientzle <kientzle@FreeBSD.org>2006-07-30 18:34:40 +0000
commit3e01f8e05a4870946d790e1c241e5a6ec827a58c (patch)
tree1e2c568ef1d1bcb9ca66e120d8111eea7542dc2d /usr.bin/tar
parent5badabe37cbbd31630bd5b8cc6ecc235218b34ee (diff)
downloadFreeBSD-src-3e01f8e05a4870946d790e1c241e5a6ec827a58c.zip
FreeBSD-src-3e01f8e05a4870946d790e1c241e5a6ec827a58c.tar.gz
Conditionally include sys/mkdev.h on platforms (such as Solaris) that need it.
While I'm here, correctly alphabetize 't' after 's'. Thanks to: VMiklos
Diffstat (limited to 'usr.bin/tar')
-rw-r--r--usr.bin/tar/read.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/tar/read.c b/usr.bin/tar/read.c
index ea677fe..56a87f8 100644
--- a/usr.bin/tar/read.c
+++ b/usr.bin/tar/read.c
@@ -27,9 +27,12 @@
#include "bsdtar_platform.h"
__FBSDID("$FreeBSD$");
+#ifdef MAJOR_IN_MKDEV
+#include <sys/mkdev.h>
+#endif
#include <sys/param.h>
-#include <sys/types.h>
#include <sys/stat.h>
+#include <sys/types.h>
#include <errno.h>
#include <grp.h>
OpenPOWER on IntegriCloud