ports/net/uriparser/files/patch-tool_uriparse.c
Ed Schouten f038799285 Update uriparser to version 0.8.4.
It looks like the latest release doesn't build because of a missing
#include. The source file depends on AF_INET and AF_INET6, which of
course requires <sys/socket.h>.

Submitted by: Torsten Zühlsdorff
PR: 203972
Differential Revision:	https://reviews.freebsd.org/D4001
2015-10-27 07:33:47 +00:00

10 lines
268 B
C

--- tool/uriparse.c
+++ tool/uriparse.c
@@ -36,6 +36,7 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
* OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+#include <sys/socket.h>
#include <stdio.h>
#include <stdlib.h>
#include <uriparser/Uri.h>