(main): Don't test whether macros like
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 29 Aug 2006 00:32:33 +0000 (00:32 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 29 Aug 2006 00:32:33 +0000 (00:32 +0000)
S_ISLNK are defined, since they're always defined now.

ChangeLog
src/mknod.c

index be421b2..a1babc0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,7 @@
        * src/cp.c (main): Likewise.
        * src/ln.c (main): Likewise.
        * src/ls.c (get_link_name, make_link_name): Likewise.
+       * src/mknod.c (main): Likewise.
        * src/mkfifo.c (usage): Likewise.
        * src/who.c (S_IWGRP): Likewise.
 
index 0bda220..43a1b9d 100644 (file)
@@ -208,12 +208,8 @@ main (int argc, char **argv)
       break;
 
     case 'p':                  /* `pipe' */
-#ifndef S_ISFIFO
-      error (EXIT_FAILURE, 0, _("fifo files not supported"));
-#else
       if (mkfifo (argv[optind], newmode) != 0)
        error (EXIT_FAILURE, errno, "%s", quote (argv[optind]));
-#endif
       break;
 
     default: