summaryrefslogtreecommitdiff
blob: 44e1205e323e96c5d177d9b189858a16f1bb1833 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# HG changeset patch
# User Alexis Ballier <aballier@gentoo.org>
# Date 1335036489 10800
# Node ID 6fc56571c45a09d42829624a0d6339f3ad0f6168
# Parent  3c08d65400c4915891d8b8b18f21c5f0326537b0
Include arpa/inet.h for htons.

See http://pubs.opengroup.org/onlinepubs/9699919799/functions/htonl.html
Fixes build on FreeBSD.

diff -r 3c08d65400c4 -r 6fc56571c45a src/audio_dec/xine_lpcm_decoder.c
--- a/src/audio_dec/xine_lpcm_decoder.c	Thu Apr 19 09:43:05 2012 +0300
+++ b/src/audio_dec/xine_lpcm_decoder.c	Sat Apr 21 16:28:09 2012 -0300
@@ -41,6 +41,7 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <fcntl.h>
+#include <arpa/inet.h> /* htons */
 #include <netinet/in.h> /* ntohs */
 
 #include <xine/xine_internal.h>