pull in the AROS socket headers.
[AROS-Contrib.git] / MultiMedia / libs / ffmpeg / ffmpeg-3.0.1-aros.diff
blobb14acbf2f615129e5f0d96c98294568aeed0307c
1 diff -ruN ffmpeg-3.0.1/configure ffmpeg-3.0.1.aros/configure
2 --- ffmpeg-3.0.1/configure 2016-03-29 03:27:11.000000000 +0100
3 +++ ffmpeg-3.0.1.aros/configure 2016-04-17 10:40:16.268649237 +0100
4 @@ -4467,6 +4467,8 @@
5 SLIB_INSTALL_LINKS=
6 SHFLAGS='-shared -Wl,-soname,$(SLIBNAME)'
7 ;;
8 + aros)
9 + ;;
10 haiku)
11 prefix_default="/boot/common"
12 network_extralibs="-lnetwork"
13 diff -ruN ffmpeg-3.0.1/libavformat/Makefile ffmpeg-3.0.1.aros/libavformat/Makefile
14 --- ffmpeg-3.0.1/libavformat/Makefile 2016-03-29 03:25:27.000000000 +0100
15 +++ ffmpeg-3.0.1.aros/libavformat/Makefile 2016-04-17 10:40:16.268649237 +0100
16 @@ -5,6 +5,7 @@
17 HEADERS = avformat.h \
18 avio.h \
19 version.h \
20 + url.h
22 OBJS = allformats.o \
23 avio.o \
24 diff -ruN ffmpeg-3.0.1/libavformat/os_support.h ffmpeg-3.0.1.aros/libavformat/os_support.h
25 --- ffmpeg-3.0.1/libavformat/os_support.h 2016-03-29 03:25:29.000000000 +0100
26 +++ ffmpeg-3.0.1.aros/libavformat/os_support.h 2016-04-23 14:50:59.696886816 +0100
27 @@ -105,6 +105,12 @@
28 #define closesocket close
29 #endif
31 +#if defined(__AROS__)
32 +#undef closesocket
33 +#define closesocket CloseSocket
34 +#include <proto/socket.h>
35 +#endif
37 #if !HAVE_POLL_H
38 typedef unsigned long nfds_t;