1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-29 05:38:00 +00:00

- s/malloc.h/stdlib.h/ on some files to fix build on amd64 - 7.x [1]

- change some patches to REINPLACE_CMD [2]

PR:		ports/86638 [1]
Submitted by:	maintainer [1]
Reworked by:	me [2]
Approved by:	maintainer [2]
This commit is contained in:
Renato Botelho 2005-09-27 16:36:23 +00:00
parent 28fd801b7f
commit 0960e2f2f5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=143636
4 changed files with 7 additions and 37 deletions

View File

@ -25,6 +25,13 @@ MAN1= tthsum.1
post-patch:
@${REINPLACE_CMD} -E '/^(CC|CFLAGS)/d' \
${WRKSRC}/Makefile
@${REINPLACE_CMD} -e 's,malloc.h,stdlib.h,g' \
${WRKSRC}/base32.c \
${WRKSRC}/read.c \
${WRKSRC}/utf8.c
@${REINPLACE_CMD} '/stdio.h/H; /stdio\.h/{ p; s/#include <stdio.h>/#define O_LARGEFILE 0/;}' \
${WRKSRC}/read.c \
${WRKSRC}/thex.c
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/obj-${ARCH}/${PORTNAME} ${PREFIX}/bin

View File

@ -1,15 +0,0 @@
--- read.c.orig Tue Jun 28 02:50:50 2005
+++ read.c Sun Sep 25 14:21:38 2005
@@ -38,9 +38,11 @@
#include <sys/stat.h>
#include <fcntl.h>
#include <limits.h>
-#include <malloc.h>
+#include <stdlib.h>
#include <string.h>
#include <stdio.h>
+
+#define O_LARGEFILE 0
struct readmmap_data {
#ifdef _WIN32

View File

@ -1,11 +0,0 @@
--- thex.c.orig Sun Sep 25 14:22:31 2005
+++ thex.c Sun Sep 25 14:22:42 2005
@@ -37,6 +37,8 @@
#include <string.h>
#include <stdio.h>
+#define O_LARGEFILE 0
+
int thex_tiger_root(const unsigned char* filename, uint64_t* res,
int use_mmap, unsigned progress_every_mib) {
int ret = 0;

View File

@ -1,11 +0,0 @@
--- utf8.c.orig Sun Sep 25 14:23:55 2005
+++ utf8.c Sun Sep 25 14:24:06 2005
@@ -24,7 +24,7 @@
# define WINDOWS_LEAN_AND_MEAN
# include <windows.h>
#endif /* _WIN32 */
-#include <malloc.h>
+#include <stdlib.h>
#include <string.h>
/*