shithub: opusfile

Download patch

ref: c0cc2defcebd58640cd53eb032deead8c25578ef
parent: 7c14e014fd8c7c69e3d37ddaad1b9d0e2698fb84
author: Mark Harris <mark.hsj@gmail.com>
date: Wed Jun 24 18:23:42 EDT 2020

http: Fix build on Solaris/Illumos

--- a/src/http.c
+++ b/src/http.c
@@ -334,6 +334,9 @@
 
 # else
 /*Normal Berkeley sockets.*/
+#  ifndef BSD_COMP
+#   define BSD_COMP 1        /* for FIONREAD on Solaris/Illumos */
+#  endif
 #  include <sys/ioctl.h>
 #  include <sys/types.h>
 #  include <sys/socket.h>