From 057400d9b4d390b523bd37b7baf99b0285bcde92 Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 10 Jun 2009 11:49:42 -0400 Subject: [PATCH] COMP: Fix cmtar build on VMS The mknod and mkfifo functions are not available on VMS. --- Utilities/cmtar/extract.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Utilities/cmtar/extract.c b/Utilities/cmtar/extract.c index a584a8f24..36599d558 100644 --- a/Utilities/cmtar/extract.c +++ b/Utilities/cmtar/extract.c @@ -607,7 +607,7 @@ tar_extract_chardev(TAR *t, char *realname) printf(" ==> extracting: %s (character device %ld,%ld)\n", filename, devmaj, devmin); #endif -#ifndef WIN32 +#if !defined(WIN32) && !defined(__VMS) if (mknod(filename, mode | S_IFCHR, compat_makedev(devmaj, devmin)) == -1) #else @@ -683,7 +683,7 @@ tar_extract_blockdev(TAR *t, char *realname) printf(" ==> extracting: %s (block device %ld,%ld)\n", filename, devmaj, devmin); #endif -#ifndef WIN32 +#if !defined(WIN32) && !defined(__VMS) if (mknod(filename, mode | S_IFBLK, compat_makedev(devmaj, devmin)) == -1) #else @@ -871,7 +871,7 @@ tar_extract_fifo(TAR *t, char *realname) #ifdef DEBUG printf(" ==> extracting: %s (fifo)\n", filename); #endif -#ifndef WIN32 +#if !defined(WIN32) && !defined(__VMS) if (mkfifo(filename, mode & 07777) == -1) #else (void)mode;