The fchdir() proto is supposed to live in <unistd.h>.
Jarkko Hietaniemi [Thu, 21 Jun 2001 22:41:11 +0000 (22:41 +0000)]
p4raw-id: //depot/perl@10805

ext/Cwd/Cwd.xs

index ba65a5f..82b89ac 100644 (file)
@@ -2,6 +2,10 @@
 #include "perl.h"
 #include "XSUB.h"
 
+#ifdef I_UNISTD
+#   include <unistd.h>
+#endif
+
 /* The realpath() implementation from OpenBSD 2.9 (realpath.c 1.4)
  * Renamed here to bsd_realpath() to avoid library conflicts.
  * --jhi 2000-06-20 */