Some pre-POSIX systems don't have unistd.h (but e.g. lib.c).
[openssl.git] / crypto / idea / idea_spd.c
index 3c24ff5d861aaf9e5ac08347048c6fc75bdd26ae..5f79f93d679421000a9b7ab29b7202c5af9ccd96 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>