瀏覽代碼

more build fixes, found on FreeBSD host

Waldemar Brodkorb 14 年之前
父節點
當前提交
dd50e3ad11

+ 11 - 0
package/gpsd/patches/patch-driver_sirf_c

@@ -0,0 +1,11 @@
+--- gpsd-2.95.orig/driver_sirf.c	2010-06-11 10:38:24.000000000 +0200
++++ gpsd-2.95/driver_sirf.c	2010-07-30 12:53:40.000000000 +0200
+@@ -325,7 +325,7 @@ static gps_mask_t sirf_msg_debug(unsigne
+     char msgbuf[MAX_PACKET_LENGTH * 3 + 2];
+     int i;
+ 
+-    bzero(msgbuf, (int)sizeof(msgbuf));
++    memset(msgbuf, 0, (int)sizeof(msgbuf));
+ 
+     /*@ +charint @*/
+     if (0xe1 == buf[0]) {	/* Development statistics messages */

+ 11 - 0
package/gpsd/patches/patch-gpspipe_c

@@ -0,0 +1,11 @@
+--- gpsd-2.95.orig/gpspipe.c	2010-06-11 11:21:42.000000000 +0200
++++ gpsd-2.95/gpspipe.c	2010-07-30 12:54:08.000000000 +0200
+@@ -120,7 +120,7 @@ static void open_serial(char *device)
+     }
+ 
+     /* Clear struct for new port settings. */
+-    /*@i@*/ bzero(&newtio, sizeof(newtio));
++    /*@i@*/ memset(&newtio, 0, sizeof(newtio));
+ 
+     /* make it raw */
+     (void)cfmakeraw(&newtio);

+ 1 - 0
package/libmpc/Makefile

@@ -7,6 +7,7 @@ include ${TOPDIR}/toolchain/mpc/Makefile.inc
 PKG_DESCR:=		GNU multiprecision arithmetic library
 PKG_SECTION:=		libs
 PKG_URL:=		http://www.multiprecision.org/
+PKG_BUILDDEP+=		gmp mpfr
 
 include ${TOPDIR}/mk/package.mk
 

+ 2 - 2
package/lsof/Makefile

@@ -19,9 +19,9 @@ include $(TOPDIR)/mk/package.mk
 
 $(eval $(call PKG_template,LSOF,$(PKG_NAME),$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
 
-CONFIGURE_PROG:=	Configure
 CONFIG_STYLE:=		minimal
-CONFIGURE_ARGS+=	-n linux
+CONFIGURE_PROG:=	Configure
+CONFIGURE_ARGS:=	-n linux
 XAKE_FLAGS+=		CC='${TARGET_CC}'
 INSTALL_STYLE:=		manual
 

+ 10 - 0
package/mplayer/patches/patch-loader_win32_c

@@ -0,0 +1,10 @@
+--- mplayer-1.0-31648.orig/loader/win32.c	2010-07-09 11:53:19.000000000 +0200
++++ mplayer-1.0-31648/loader/win32.c	2010-07-30 15:24:59.000000000 +0200
+@@ -65,7 +65,6 @@ for DLL to know too much about its envir
+ #include <dirent.h>
+ #include <sys/time.h>
+ #include <sys/stat.h>
+-#include <sys/timeb.h>
+ #ifdef	HAVE_KSTAT
+ #include <kstat.h>
+ #endif