Skip to content

Commit c0cc2de

Browse files
committed
http: Fix build on Solaris/Illumos
1 parent 7c14e01 commit c0cc2de

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/http.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,9 @@ int SSL_CTX_set_default_verify_paths_win32(SSL_CTX *_ssl_ctx);
334334

335335
# else
336336
/*Normal Berkeley sockets.*/
337+
# ifndef BSD_COMP
338+
# define BSD_COMP 1 /* for FIONREAD on Solaris/Illumos */
339+
# endif
337340
# include <sys/ioctl.h>
338341
# include <sys/types.h>
339342
# include <sys/socket.h>

0 commit comments

Comments
 (0)