COMP: Fix cmtar build on VMS

The mknod and mkfifo functions are not available on VMS.
This commit is contained in:
Brad King 2009-06-10 11:49:42 -04:00
parent 6f109620b3
commit 057400d9b4
1 changed files with 3 additions and 3 deletions

View File

@ -607,7 +607,7 @@ tar_extract_chardev(TAR *t, char *realname)
printf(" ==> extracting: %s (character device %ld,%ld)\n", printf(" ==> extracting: %s (character device %ld,%ld)\n",
filename, devmaj, devmin); filename, devmaj, devmin);
#endif #endif
#ifndef WIN32 #if !defined(WIN32) && !defined(__VMS)
if (mknod(filename, mode | S_IFCHR, if (mknod(filename, mode | S_IFCHR,
compat_makedev(devmaj, devmin)) == -1) compat_makedev(devmaj, devmin)) == -1)
#else #else
@ -683,7 +683,7 @@ tar_extract_blockdev(TAR *t, char *realname)
printf(" ==> extracting: %s (block device %ld,%ld)\n", printf(" ==> extracting: %s (block device %ld,%ld)\n",
filename, devmaj, devmin); filename, devmaj, devmin);
#endif #endif
#ifndef WIN32 #if !defined(WIN32) && !defined(__VMS)
if (mknod(filename, mode | S_IFBLK, if (mknod(filename, mode | S_IFBLK,
compat_makedev(devmaj, devmin)) == -1) compat_makedev(devmaj, devmin)) == -1)
#else #else
@ -871,7 +871,7 @@ tar_extract_fifo(TAR *t, char *realname)
#ifdef DEBUG #ifdef DEBUG
printf(" ==> extracting: %s (fifo)\n", filename); printf(" ==> extracting: %s (fifo)\n", filename);
#endif #endif
#ifndef WIN32 #if !defined(WIN32) && !defined(__VMS)
if (mkfifo(filename, mode & 07777) == -1) if (mkfifo(filename, mode & 07777) == -1)
#else #else
(void)mode; (void)mode;