#include <config.h>
#endif
-/* Cancel substitutions made by config.h for Emacs. */
-#undef open
-#undef read
-#undef write
-#undef close
-
#include <stdio.h>
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
+
#ifndef O_RDONLY
#define O_RDONLY 0
#endif
-
/* Break string in two parts to avoid buggy C compilers that ignore characters
after nulls in strings. */