View | Details | Raw Unified | Return to bug 208704 | Differences between
and this patch

Collapse All | Expand All

(-)converters/uudx/Makefile (-7 / +5 lines)
Lines 12-26 Link Here
12
12
13
BUILD_DEPENDS=	nkf:japanese/nkf
13
BUILD_DEPENDS=	nkf:japanese/nkf
14
14
15
USES=		lha
16
NO_WRKSUBDIR=	yes
15
NO_WRKSUBDIR=	yes
17
PLIST_FILES=	bin/uudx \
18
		man/ja/man1/uudx.1.gz
19
16
20
pre-patch:
17
USES=		dos2unix lha
21
	@${CP} ${FILESDIR}/Makefile ${WRKSRC}
18
DOS2UNIX_FILES=	uudx.1 uudx.c
19
MAKEFILE=	${FILESDIR}/Makefile
22
20
23
post-patch:
21
PLIST_FILES=	bin/uudx \
24
	@${REINPLACE_CMD} -e '/sprintf()/d' ${WRKSRC}/uudx.c
22
		man/ja/man1/uudx.1.gz
25
23
26
.include <bsd.port.mk>
24
.include <bsd.port.mk>
(-)converters/uudx/files/patch-uudx.c (-20 / +24 lines)
Lines 1-23 Link Here
1
--- uudx.c.orig	Sun Jan 29 16:44:42 1995
1
--- uudx.c.orig	1995-01-29 07:44:42 UTC
2
+++ uudx.c	Sat Feb 12 19:31:31 2000
2
+++ uudx.c
3
@@ -89,7 +89,11 @@
3
@@ -87,10 +87,15 @@ struct utimbuf {
4
 #else
4
 #if !BSD
5
 #define strchr		index
5
 #include <string.h>
6
 extern char	*strchr();
6
 #else
7
+#if !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__NetBSD__)
7
+#if !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__NetBSD__)
8
 extern char	*sprintf();
8
 #define strchr		index
9
 extern char	*strchr();
10
 extern char	*sprintf();
11
 extern char	*strcpy();
9
+#else
12
+#else
10
+extern int	sprintf();
13
+#include <string.h>
14
+#include <unistd.h>
11
+#endif
15
+#endif
12
 extern char	*strcpy();
16
 #endif /* BSD */
13
 #endif /* BSD */
17
 
14
 
18
 #define	NAMLEN		256
15
@@ -346,7 +350,7 @@
19
@@ -346,7 +351,7 @@ main(int argc, char *argv[])
16
 		norm_dir(work_file_name, p);
20
 		norm_dir(work_file_name, p);
17
 	}
21
 	}
18
 	strcat(work_file_name, "udXXXXXX");
22
 	strcat(work_file_name, "udXXXXXX");
19
-	if (mktemp(work_file_name) == NULL) {
23
-	if (mktemp(work_file_name) == NULL) {
20
+	if (mkstemp(work_file_name) == NULL) {
24
+	if (mkstemp(work_file_name) == NULL) {
21
 		cant("make", "work_file_name", 1);
25
 		cant("make", "work_file_name", 1);
22
 		/* NOTREACHED */
26
 		/* NOTREACHED */
23
 	}
27
 	}

Return to bug 208704