Pass CFLAG to dependency makers, so non-standard system include paths are
[openssl.git] / crypto / rc4 / rc4speed.c
index 5f77fbc24135ae64bfb7bb70fe3fe6734f7df2b1..ced98c52df948b8065f4ee5cd858b261bc13be18 100644 (file)
 /* 11-Sep-92 Andrew Daviel   Support for Silicon Graphics IRIX added */
 /* 06-Apr-92 Luke Brennan    Support for VMS and add extra signal calls */
 
 /* 11-Sep-92 Andrew Daviel   Support for Silicon Graphics IRIX added */
 /* 06-Apr-92 Luke Brennan    Support for VMS and add extra signal calls */
 
-#if !defined(MSDOS) && (!defined(VMS) || defined(__DECC))
+#if !defined(OPENSSL_SYS_MSDOS) && (!defined(OPENSSL_SYS_VMS) || defined(__DECC)) && !defined(OPENSSL_SYS_MACOSX)
 #define TIMES
 #endif
 
 #include <stdio.h>
 #define TIMES
 #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>
@@ -83,7 +82,7 @@ extern int exit();
    The __TMS macro will show if it was.  If it wasn't defined, we should
    undefine TIMES, since that tells the rest of the program how things
    should be handled.                          -- Richard Levitte */
    The __TMS macro will show if it was.  If it wasn't defined, we should
    undefine TIMES, since that tells the rest of the program how things
    should be handled.                          -- Richard Levitte */
-#if defined(VMS) && defined(__DECC) && !defined(__TMS)
+#if defined(OPENSSL_SYS_VMS_DECC) && !defined(__TMS)
 #undef TIMES
 #endif
 
 #undef TIMES
 #endif
 
@@ -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
 /* 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
 #define HZ     100.0
-#endif
 #else /* CLK_TCK */
 #define HZ ((double)CLK_TCK)
 #endif
 #else /* CLK_TCK */
 #define HZ ((double)CLK_TCK)
 #endif
@@ -188,7 +183,7 @@ int main(int argc, char **argv)
 #endif
 
 #ifndef TIMES
 #endif
 
 #ifndef TIMES
-       printf("To get the most acurate results, try to run this\n");
+       printf("To get the most accurate results, try to run this\n");
        printf("program when this computer is idle.\n");
 #endif
 
        printf("program when this computer is idle.\n");
 #endif
 
@@ -248,7 +243,7 @@ int main(int argc, char **argv)
        printf("RC4 set_key per sec = %12.2f (%9.3fuS)\n",a,1.0e6/a);
        printf("RC4   bytes per sec = %12.2f (%9.3fuS)\n",c,8.0e6/c);
        exit(0);
        printf("RC4 set_key per sec = %12.2f (%9.3fuS)\n",a,1.0e6/a);
        printf("RC4   bytes per sec = %12.2f (%9.3fuS)\n",c,8.0e6/c);
        exit(0);
-#if defined(LINT) || defined(MSDOS)
+#if defined(LINT) || defined(OPENSSL_SYS_MSDOS)
        return(0);
 #endif
        }
        return(0);
 #endif
        }