libshout mingw compatbility

LRN <[email protected]>
Newsgroups gmane.comp.audio.icecast.devel
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

A couple of one-liners. One restricts the use of the os.h to msvc,
since mingw can use config.h. The other adds -no-undefined to LDFLAGS
(no idea what the impact on non-PE OSes will be, but unless undefined
symbols in libshout are needed by design, -no-undefined should be safe).
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (MingW32)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJRX7ulAAoJEOs4Jb6SI2CwWKQIAKc8RiUSa9f71Olhj1EtVTOY
cHbjZq6k4dyYTxq3t9eEIkYWHLHZNmflYrA5vtm8POucfsYG7ync3BT4Cw70dmyv
ws4IiZsLzMFtdMRhR2YMzJGOcja6fhO7Kh/WUBtQkAffIEbnrOUk8YxTzt/qrZOw
zEd9YB0/7IKnKkbZn5NIg2a5HSypeifj7xj/wpP+NpeJcOpxWRmEjh8GJvjTsl0I
deA4ba5EyuomSY8ymCe/OwrT52yyKxGpoCVUaubGWYNh2DYARGIbSk6vjGIGA1QC
KcQH5iyso3esCBCZnDfpCpLfzxfq3dWlI7OmTeAm6HUAYiLI/cn6GnWefFHM9qU=
=BN/j
-----END PGP SIGNATURE-----

_______________________________________________
Icecast-dev mailing list
[email protected]
http://lists.xiph.org/mailman/listinfo/icecast-dev
0004-no-undefined-on.mingw32.patch (text/plain, 412 B)
--- libshout-2.2.2/src/Makefile.am.orig	2012-04-04 20:01:57 +0400
+++ libshout-2.2.2/src/Makefile.am	2012-04-04 20:07:34 +0400
@@ -18,7 +18,7 @@
 SUBDIRS = avl net timing httpp $(MAYBE_THREAD)
 
 lib_LTLIBRARIES = libshout.la
-libshout_la_LDFLAGS = -version-info 5:0:2
+libshout_la_LDFLAGS = -version-info 5:0:2 -no-undefined
 
 EXTRA_DIST = theora.c speex.c
 noinst_HEADERS = shout_ogg.h shout_private.h util.h
0002-msvc-is-impotent-unlike.mingw32.patch (text/plain, 277 B)
--- libshout-2.2.2/include/shout/shout.h.in.orig	2005-06-28 01:33:21 +0400
+++ libshout-2.2.2/include/shout/shout.h.in	2012-04-04 19:32:18 +0400
@@ -22,7 +22,7 @@
 #define __LIBSHOUT_SHOUT_H__
 
 #include <sys/types.h>
-#ifdef WIN32
+#ifdef _MSC_VER
 #include <os.h>
 #endif
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.