diff options
author | Brad King <brad.king@kitware.com> | 2009-06-10 11:49:42 -0400 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-06-10 11:49:42 -0400 |
commit | 057400d9b4d390b523bd37b7baf99b0285bcde92 (patch) | |
tree | 3d964ec693bfe84e48fedcbc35f96252287c2b58 /Utilities | |
parent | 6f109620b356c6ff2d283d8fb1e4f545214a74b6 (diff) | |
download | cmake-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.c | 6 |
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; |