[MPlayer-users] Patch for Solaris dpms

Dagobert Michelsen dam at baltic-online.de
Mon Jan 27 14:44:15 CET 2003


Hi,

the detection for DPMS4 in Solaris 9 is currently broken in
configure. The configure.log says

gcc    /tmp/mplayer-conf--9619.c -o /tmp/mplayer-conf--9619.o -L/usr/openwin/lib -lXext -lX11 -lsocket -lnsl
In file included from /tmp/mplayer-conf--9619.c:2:
/usr/include/X11/extensions/dpms.h:52: parse error before `CARD16'
/usr/include/X11/extensions/dpms.h:60: parse error before `CARD16'
/usr/include/X11/extensions/dpms.h:97: parse error before `CARD16'
/usr/include/X11/extensions/dpms.h:103: parse error before `CARD16'

An additional include is needed for xdpms to work in Solaris 9:

--- MPlayer/main/configure      2003-01-26 16:42:11.000000000 +0100
+++ MPlayer-work/main/configure 2003-01-27 14:41:47.328472000 +0100
@@ -2427,6 +2427,7 @@
 if test "$_x11" = yes ; then
   cat > $TMPC <<EOF
 #include <X11/Xlib.h>
+#include <X11/Xmd.h>
 #include <X11/extensions/dpms.h>
 int main(void) {
   (void) DPMSQueryExtension(0, 0, 0);


Thanks for the great player

  -- Dagobert

--
Dagobert Michelsen, Leiter IT       Baltic Online Computer GmbH
Alter Markt 1-2,  24103 Kiel,   +49 431 54003-0 (Fon) -99 (Fax)
In a world without walls and fences who needs Windows and Gates



More information about the MPlayer-users mailing list