The fchdir() proto is supposed to live in <unistd.h>.
[p5sagit/p5-mst-13.2.git] / 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 */