summaryrefslogtreecommitdiff
path: root/community/sdd/build-fix.patch
blob: daf299eb88f0188fa110ace843f82866303eeb4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
diff -wbBur sdd-1.52/include/schily.h sdd-1.52.my/include/schily.h
--- sdd-1.52/include/schily.h	2004-03-05 00:30:40.000000000 +0000
+++ sdd-1.52.my/include/schily.h	2010-07-08 14:00:07.000000000 +0000
@@ -108,14 +108,14 @@
 		/* 6th arg not const, fexecv forces av[ac] = NULL */
 extern	int	fexecv __PR((const char *, FILE *, FILE *, FILE *, int,
 							char **));
-extern	int	fexecve __PR((const char *, FILE *, FILE *, FILE *,
-					char * const *, char * const *));
+//extern	int	fexecve __PR((const char *, FILE *, FILE *, FILE *,
+//					char * const *, char * const *));
 extern	int	fspawnv __PR((FILE *, FILE *, FILE *, int, char * const *));
 extern	int	fspawnl __PR((FILE *, FILE *, FILE *,
 					const char *, const char *, ...));
 extern	int	fspawnv_nowait __PR((FILE *, FILE *, FILE *,
 					const char *, int, char *const*));
-extern	int	fgetline __PR((FILE *, char *, int));
+extern	int	xfgetline __PR((FILE *, char *, int));
 extern	int	fgetstr __PR((FILE *, char *, int));
 extern	void	file_raise __PR((FILE *, int));
 extern	int	fileclose __PR((FILE *));
@@ -187,7 +187,7 @@
 extern	char	*findbytes __PR((const void *, int, char));
 extern	int	findline __PR((const char *, char, const char *,
 							int, char **, int));
-extern	int	getline __PR((char *, int));
+extern	int	xgetline __PR((char *, int));
 extern	int	getstr __PR((char *, int));
 extern	int	breakline __PR((char *, char, char **, int));
 extern	int	getallargs __PR((int *, char * const**, const char *, ...));
diff -wbBur sdd-1.52/libschily/stdio/fgetline.c sdd-1.52.my/libschily/stdio/fgetline.c
--- sdd-1.52/libschily/stdio/fgetline.c	2004-08-08 11:02:05.000000000 +0000
+++ sdd-1.52.my/libschily/stdio/fgetline.c	2010-07-08 14:02:08.000000000 +0000
@@ -26,7 +26,7 @@
  */
 
 EXPORT int
-fgetline(f, buf, len)
+xfgetline(f, buf, len)
 	register	FILE	*f;
 			char	*buf;
 	register	int	len;
@@ -64,9 +64,9 @@
 }
 
 EXPORT int
-getline(buf, len)
+xgetline(buf, len)
 	char	*buf;
 	int	len;
 {
-	return (fgetline(stdin, buf, len));
+	return (xfgetline(stdin, buf, len));
 }
diff -wbBur sdd-1.52/RULES/mk-gmake.id sdd-1.52.my/RULES/mk-gmake.id
--- sdd-1.52/RULES/mk-gmake.id	2004-08-03 21:33:18.000000000 +0000
+++ sdd-1.52.my/RULES/mk-gmake.id	2010-07-08 14:00:07.000000000 +0000
@@ -37,7 +37,7 @@
 
 ifndef		ARCH_DONE
 
-__gmake_warn:=	$(shell cat $(SRCROOT)/$(RULESDIR)/gmake.wrn 1>&2; sleep 15)
+__gmake_warn:=	$(shell cat $(SRCROOT)/$(RULESDIR)/gmake.wrn 1>&2)
 
 _MACHCMD=	(mach || uname -p || true)	2> /dev/null
 _ARCHCMD=	(arch || /usr/ucb/arch || true)	2> /dev/null
diff -wbBur sdd-1.52/sdd/sdd.c sdd-1.52.my/sdd/sdd.c
--- sdd-1.52/sdd/sdd.c	2004-07-27 10:49:31.000000000 +0000
+++ sdd-1.52.my/sdd/sdd.c	2010-07-08 14:01:20.000000000 +0000
@@ -850,7 +850,7 @@
 						inout, num);
 		(void) fflush(stderr);
 		ap = answer;
-		if (fgetline(tty, ap, 16) == EOF)
+		if (xfgetline(tty, ap, 16) == EOF)
 			return (FALSE);
 		while (*ap == ' ' || *ap == '\t')
 			ap++;