[MPlayer-dev-eng] [PATCH] loader/ext.c fails to compile

Loren Merritt lorenm at u.washington.edu
Sat Sep 11 00:07:02 CEST 2004


The last commit broke compilation of loader/ext.c under
gcc (GCC) 3.3.1 (Mandrake Linux 9.2 3.3.1-2mdk)
with error message
loader/libloader.a(ext.o)(.text+0x8e6): In function `VirtualAlloc':
: `sys_errlist' is deprecated; use `strerror' or `strerror_r' instead

--Loren Merritt
-------------- next part --------------
Index: loader/ext.c
===================================================================
RCS file: /cvsroot/mplayer/main/loader/ext.c,v
retrieving revision 1.10
diff -u -r1.10 ext.c
--- loader/ext.c	10 Sep 2004 16:39:31 -0000	1.10
+++ loader/ext.c	10 Sep 2004 22:02:38 -0000
@@ -535,7 +535,7 @@
     if(answer==(void*)-1)
     {
 	printf(" VirtualAlloc(...) mmap(0x%08X, %u, ...) failed with errno=%d (\"%s\")\n",
-	       (unsigned)address, size, errno, sys_errlist[errno]);
+	       (unsigned)address, size, errno, strerror(errno));
 	return NULL;
     }
     else


More information about the MPlayer-dev-eng mailing list