Some pre-POSIX systems don't have unistd.h (but e.g. lib.c).
[openssl.git] / crypto / idea / idea_spd.c
index 9847da9c61c3082b1151fc19bbb0f24ee7a19ed9..5f79f93d679421000a9b7ab29b7202c5af9ccd96 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>
@@ -102,11 +101,7 @@ extern int exit();
 /* The following if from times(3) man page.  It may need to be changed */
 #ifndef HZ
 #ifndef CLK_TCK
-#ifndef VMS
-#define HZ     100.0
-#else /* VMS */
 #define HZ     100.0
-#endif
 #else /* CLK_TCK */
 #define HZ ((double)CLK_TCK)
 #endif