aboutsummaryrefslogtreecommitdiffstats
path: root/apps/apps.h
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2006-04-17 12:22:13 +0000
committerDr. Stephen Henson <steve@openssl.org>2006-04-17 12:22:13 +0000
commit7bf7333d688264f6d389c1c3c87c127f484b2efa (patch)
treed777c6c566351367c8e0996fc7e162e18541f67a /apps/apps.h
parentc20276e4aef1e716980589c43cf9276abc7ff2b7 (diff)
downloadopenssl-7bf7333d688264f6d389c1c3c87c127f484b2efa.tar.gz
If we include winsock2.h then FD_SET wants an unsigned type for an fd.
Diffstat (limited to 'apps/apps.h')
-rw-r--r--apps/apps.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/apps.h b/apps/apps.h
index 00522341ff..3b5febac7d 100644
--- a/apps/apps.h
+++ b/apps/apps.h
@@ -193,6 +193,13 @@ extern BIO *bio_err;
# endif
#endif
+#ifdef OPENSSL_SYSNAME_WIN32
+# define openssl_fdset(a,b) FD_SET((unsigned int)a, b)
+#else
+# define openssl_fdset(a,b) FD_SET(a, b)
+#endif
+
+
typedef struct args_st
{
char **data;