Some pre-POSIX systems don't have unistd.h (but e.g. lib.c).
[openssl.git] / crypto / rc4 / rc4speed.c
index 40d153a7091daa7b6cbf84e2e65730b1ea3cee34..4fb5ebf5738381a4e12035bda5b7bc47e92da146 100644 (file)
 #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>