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