1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00

- Fix build with gcc 4.1

PR:		108080
Submitted by:	trasz
                pointyhat
This commit is contained in:
Martin Wilke 2007-01-24 20:59:32 +00:00
parent 8ac6cd84c9
commit 7fe480b9e2
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=183200
2 changed files with 14 additions and 1 deletions

View File

@ -30,6 +30,7 @@ USE_XLIB= yes
USE_GMAKE= yes
HAS_CONFIGURE= yes
WANT_SDL= yes
USE_LDCONFIG= yes
MAN1= mplayerxp.1
@ -38,7 +39,7 @@ WIN32_CODEC_PREFIX= ${LOCALBASE}/lib/win32
.include <bsd.port.pre.mk>
# add this after <bsd.port.pre.mk> so that we inherit /etc/make.conf
CONFIGURE_ARGS+= --with-extralibdir=${LOCALBASE}/lib \
CONFIGURE_ARGS+= --with-extralibdir=${LOCALBASE}/lib \
--with-extraincdir=${LOCALBASE}/include \
--with-x11incdir=${X11BASE}/include \
--with-x11libdir=${X11BASE}/lib \
@ -51,6 +52,7 @@ CONFIGURE_ARGS+= --with-extralibdir=${LOCALBASE}/lib \
--disable-rtc \
--disable-vm \
--disable-tv-v4l
CONFIGURE_ENV+= LANG=C
# insure CC,LD safeness
MAKE_ARGS+= CC="${CC}" LD="${LD}"

View File

@ -0,0 +1,11 @@
--- loader/win32.c.orig Thu Jan 18 11:06:11 2007
+++ loader/win32.c Thu Jan 18 11:06:32 2007
@@ -66,7 +66,7 @@
#include <kstat.h>
#endif
-#if HAVE_VSSCANF
+#if 1
int vsscanf( const char *str, const char *format, va_list ap);
#else
/* system has no vsscanf. try to provide one */