etc: Add environment option to run init.d/ashd silently.
[ashd.git] / src / ssl-openssl.c
index c8785a3..8fe7b9e 100644 (file)
@@ -18,7 +18,9 @@
 
 #include <fcntl.h>
 #include <unistd.h>
+#include <string.h>
 #include <sys/socket.h>
+#include <netinet/in.h>
 #include <arpa/inet.h>
 
 #ifdef HAVE_CONFIG_H
@@ -33,6 +35,8 @@
 
 #include "htparser.h"
 
+#ifdef HAVE_OPENSSL
+
 #include <openssl/ssl.h>
 #include <openssl/err.h>
 
@@ -300,3 +304,5 @@ void handleossl(int argc, char **argp, char **argv)
        bufadd(listeners, mustart(listenloop, pd));
     }
 }
+
+#endif