Some pre-POSIX systems don't have unistd.h (but e.g. lib.c).
[openssl.git] / crypto / cast / cast_spd.c
index 47af9639e44406b4a34dcaa0e3224abb34f4e0d1..c0726906c20961ae0d177856c3a047fcde4a16e4 100644 (file)
 #endif
 
 #include <stdio.h>
 #endif
 
 #include <stdio.h>
-#ifndef MSDOS
-#include <unistd.h>
-#else
-#include <io.h>
-extern int exit();
-#endif
+
+#include <openssl/e_os2.h>
+#include OPENSSL_UNISTD_IO
+OPENSSL_DECLARE_EXIT
+
 #include <signal.h>
 #ifndef _IRIX
 #include <time.h>
 #include <signal.h>
 #ifndef _IRIX
 #include <time.h>