summaryrefslogtreecommitdiffstats
path: root/apps/s_time.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2016-03-21 15:32:40 +0000
committerMatt Caswell <matt@openssl.org>2016-03-21 16:33:59 +0000
commitf9e550341281b0d344f7a5e7ac2ace79f88a3184 (patch)
tree92d80d122c6d3c1eee39ffdd08cfe1980a657095 /apps/s_time.c
parent168c3b737e898ce97348dfe77ef176e39ae9da0d (diff)
Fix no-sock
Misc fixes for no-sock Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'apps/s_time.c')
-rw-r--r--apps/s_time.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/s_time.c b/apps/s_time.c
index f68002a224..6890bc1be0 100644
--- a/apps/s_time.c
+++ b/apps/s_time.c
@@ -66,6 +66,10 @@
#include <stdlib.h>
#include <string.h>
+#include <openssl/opensslconf.h>
+
+#ifndef OPENSSL_NO_SOCK
+
#define USE_SOCKETS
#include "apps.h"
#include <openssl/x509.h>
@@ -474,3 +478,4 @@ static SSL *doConnection(SSL *scon, const char *host, SSL_CTX *ctx)
return serverCon;
}
+#endif /* OPENSSL_NO_SOCK */