mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
gst/pcapparse/: Patch to make gstpcapparse compile with mingw32 gcc. Fixes #565439.
Original commit message from CVS: Patch by: Damien Lespiau <damien dot lespiau at gmail dot com> * gst/pcapparse/Makefile.am: * gst/pcapparse/gstpcapparse.c: Patch to make gstpcapparse compile with mingw32 gcc. Fixes #565439.
This commit is contained in:
parent
231fcedd6d
commit
52b0e40115
3 changed files with 17 additions and 2 deletions
|
@ -1,3 +1,11 @@
|
|||
2008-12-29 Wim Taymans <wim.taymans@collabora.co.uk>
|
||||
|
||||
Patch by: Damien Lespiau <damien dot lespiau at gmail dot com>
|
||||
|
||||
* gst/pcapparse/Makefile.am:
|
||||
* gst/pcapparse/gstpcapparse.c:
|
||||
Patch to make gstpcapparse compile with mingw32 gcc. Fixes #565439.
|
||||
|
||||
2008-12-29 Wim Taymans <wim.taymans@collabora.co.uk>
|
||||
|
||||
* gst/rtpmanager/gstrtpsession.c:
|
||||
|
|
|
@ -1,5 +1,12 @@
|
|||
plugin_LTLIBRARIES = libgstpcapparse.la
|
||||
|
||||
# when compiling for windows we need to link with the winsock library
|
||||
if HAVE_WINSOCK2_H
|
||||
WINSOCK2_LIBS = -lws2_32
|
||||
else
|
||||
WINSOCK2_LIBS =
|
||||
endif
|
||||
|
||||
libgstpcapparse_la_SOURCES = \
|
||||
gstpcapparse.c
|
||||
|
||||
|
@ -7,7 +14,7 @@ noinst_HEADERS = \
|
|||
gstpcapparse.h
|
||||
|
||||
libgstpcapparse_la_CFLAGS = $(GST_CFLAGS) $(GST_BASE_CFLAGS)
|
||||
libgstpcapparse_la_LIBADD = $(GST_LIBS) $(GST_BASE_LIBS)
|
||||
libgstpcapparse_la_LIBADD = $(GST_LIBS) $(GST_BASE_LIBS) $(WINSOCK2_LIBS)
|
||||
libgstpcapparse_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
|
||||
libgstpcapparse_la_LIBTOOLFLAGS = --tag=disable-static
|
||||
|
||||
|
|
|
@ -48,7 +48,7 @@
|
|||
|
||||
#include <string.h>
|
||||
|
||||
#ifndef _MSC_VER
|
||||
#ifndef G_OS_WIN32
|
||||
#include <arpa/inet.h>
|
||||
#include <netinet/in.h>
|
||||
#include <string.h>
|
||||
|
|
Loading…
Reference in a new issue