Let's include cryptlib.h *before* things like NO_SYSLOG are tested or
[openssl.git] / crypto / bio / bss_log.c
index 13fb517c18ee025f86c5e3110690e13bd3b6d527..e5954cd7f52daafac12738eca1635464a4d45659 100644 (file)
@@ -66,7 +66,7 @@
 #include <stdio.h>
 #include <errno.h>
 
-#include <openssl/e_os2.h>
+#include "cryptlib.h"
 
 #if defined(OPENSSL_SYS_WIN32)
 #  include <process.h>
 #  include <starlet.h>
 #elif defined(__ultrix)
 #  include <sys/syslog.h>
-#elif !defined(MSDOS) /* Unix */
+#elif !defined(MSDOS) && !defined(NO_SYSLOG) /* Unix */
 #  include <syslog.h>
 #endif
 
-#include "cryptlib.h"
 #include <openssl/buffer.h>
 #include <openssl/err.h>