Use correct CFLAG definition for makefile.one builds.
[openssl.git] / crypto / cversion.c
index c3a372258edf518fac83fd5b025bf07c6efcfad2..428def308136645b97550bd0593da281bf270080 100644 (file)
 #include <stdio.h>
 #include <string.h>
 #include "cryptlib.h"
-#include "crypto.h"
-#include "date.h"
+#include <openssl/crypto.h>
 
-char *SSLeay_version(t)
-int t;
+#ifdef MK1MF_BUILD
+# include "mk1mfinf.h"
+#else
+# include "buildinf.h"
+#endif
+
+const char *SSLeay_version(int t)
        {
        if (t == SSLEAY_VERSION)
                return OPENSSL_VERSION_TEXT;
@@ -73,7 +77,7 @@ int t;
                static char buf[sizeof(DATE)+11];
 
                sprintf(buf,"built on: %s",DATE);
-               return(buf);
+               return(buf);
 #else
                return("built on: date not available");
 #endif
@@ -103,7 +107,7 @@ int t;
        return("not available");
        }
 
-unsigned long SSLeay()
+unsigned long SSLeay(void)
        {
        return(SSLEAY_VERSION_NUMBER);
        }