summaryrefslogtreecommitdiff
path: root/Utilities
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-06-10 11:49:42 -0400
committerBrad King <brad.king@kitware.com>2009-06-10 11:49:42 -0400
commit057400d9b4d390b523bd37b7baf99b0285bcde92 (patch)
tree3d964ec693bfe84e48fedcbc35f96252287c2b58 /Utilities
parent6f109620b356c6ff2d283d8fb1e4f545214a74b6 (diff)
downloadcmake-057400d9b4d390b523bd37b7baf99b0285bcde92.tar.gz
COMP: Fix cmtar build on VMS
The mknod and mkfifo functions are not available on VMS.
Diffstat (limited to 'Utilities')
-rw-r--r--Utilities/cmtar/extract.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Utilities/cmtar/extract.c b/Utilities/cmtar/extract.c
index a584a8f24d..36599d5584 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;