summaryrefslogtreecommitdiffstats
path: root/apps/ocsp.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2018-03-19 12:29:06 +0100
committerMatt Caswell <matt@openssl.org>2018-03-19 17:37:28 +0100
commit1a54618ba6ec09b85f00f5ca12ef275b429ff18a (patch)
tree41010da277bf9519dd10c3a17bbe8ad5e3d1dd40 /apps/ocsp.c
parentPlace ticket keys into secure memory (diff)
downloadopenssl-1a54618ba6ec09b85f00f5ca12ef275b429ff18a.tar.xz
openssl-1a54618ba6ec09b85f00f5ca12ef275b429ff18a.zip
Fix no-posix-io compile failure
The fix in conf_include_test.c seems to be required because some compilers give an error if you give an empty string for the second argument to strpbrk(). It doesn't really make sense to send an empty string for this argument anyway, so make sure it has at least one character in it. Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de> (Merged from https://github.com/openssl/openssl/pull/5666)
Diffstat (limited to 'apps/ocsp.c')
-rw-r--r--apps/ocsp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/ocsp.c b/apps/ocsp.c
index 82c11e8b60..ed2281a596 100644
--- a/apps/ocsp.c
+++ b/apps/ocsp.c
@@ -36,7 +36,8 @@ NON_EMPTY_TRANSLATION_UNIT
# include <openssl/x509v3.h>
# include <openssl/rand.h>
-# if defined(OPENSSL_SYS_UNIX) && !defined(OPENSSL_NO_SOCK)
+# if defined(OPENSSL_SYS_UNIX) && !defined(OPENSSL_NO_SOCK) \
+ && !defined(OPENSSL_NO_POSIX_IO)
# define OCSP_DAEMON
# include <sys/types.h>
# include <sys/wait.h>