[MPlayer-dev-eng] squelch some warnings (patches incl.)

Elias Pipping elias at pipping.org
Fri Feb 22 14:56:46 CET 2008


Hi,

I've attached a couple of patches to squelch some warnings, mostly on
Mac OS X (tested with 10.5.2 on an Intel Mac).

The first three patches can also be found online[1][2][3].

The fourth patch differs slightly from the version found online[4], to
make it apply to the trunk (the patches were tested with 1.0rc2 r25993)


-- Elias

[1] http://overlays.gentoo.org/proj/alt/browser/trunk/prefix-overlay/media-video/mplayer/files/mplayer-1.0-macosx-include-sysctl.patch?rev=17019
[2] http://overlays.gentoo.org/proj/alt/browser/trunk/prefix-overlay/media-video/mplayer/files/mplayer-1.0-macosx-include-time.patch?rev=17019
[3] http://overlays.gentoo.org/proj/alt/browser/trunk/prefix-overlay/media-video/mplayer/files/mplayer-1.0-macosx-include-user_ldt.patch?rev=17019
[4] http://overlays.gentoo.org/proj/alt/browser/trunk/prefix-overlay/media-video/mplayer/files/mplayer-1.0-include-stdlib.patch?rev=17019

PS: please cc me when replying as I'm not subscribed to this mailing list
PPS: trac eats 1/3 of the patch #4 when viewed online
-------------- next part --------------
--- cpudetect.c
+++ cpudetect.c
@@ -20,7 +20,7 @@
 #include <machine/cpu.h>
 #endif
 
-#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__)
+#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__) || defined(__APPLE__)
 #include <sys/types.h>
 #include <sys/sysctl.h>
 #endif
-------------- next part --------------
--- libao2/ao_macosx.c
+++ libao2/ao_macosx.c
@@ -46,6 +46,7 @@
 #include <inttypes.h>
 #include <pthread.h>
 #include <sys/types.h>
+#include <sys/time.h>
 #include <unistd.h>
 
 #include "config.h"
-------------- next part --------------
--- loader/ldt_keeper.c
+++ loader/ldt_keeper.c
@@ -58,6 +58,11 @@
 #include <machine/sysarch.h>
 #endif
 
+#if defined(__APPLE__)
+#include <architecture/i386/table.h>
+#include <i386/user_ldt.h>
+#endif
+
 #ifdef __svr4__
 #include <sys/segment.h>
 #include <sys/sysi86.h>
-------------- next part --------------
Index: dvdread/nav_read.c
===================================================================
--- dvdread/nav_read.c	(revision 26061)
+++ dvdread/nav_read.c	(working copy)
@@ -26,6 +26,7 @@
 #elif defined(HAVE_STDINT_H)
 #include <stdint.h>
 #endif
+#include <stdlib.h>
 
 #include "bswap.h"
 #include "nav_types.h"
Index: tremor/misc.h
===================================================================
--- tremor/misc.h	(revision 26061)
+++ tremor/misc.h	(working copy)
@@ -28,6 +28,7 @@
 #ifndef  _LOW_ACCURACY_
 /* 64 bit multiply */
 
+#include <stdlib.h>
 #include <sys/types.h>
 #include "config.h"
 
Index: libmpcodecs/mp_image.h
===================================================================
--- libmpcodecs/mp_image.h	(revision 26061)
+++ libmpcodecs/mp_image.h	(working copy)
@@ -1,5 +1,6 @@
 #ifndef MPLAYER_MP_IMAGE_H
 #define MPLAYER_MP_IMAGE_H
+#include <stdlib.h>
 
 //--------- codec's requirements (filled by the codec/vf) ---------
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20080222/5c839302/attachment.pgp>


More information about the MPlayer-dev-eng mailing list