File: compile

package info (click to toggle)
multitee 3.0-5
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 232 kB
  • ctags: 375
  • sloc: ansic: 1,673; makefile: 7
file content (79 lines) | stat: -rw-r--r-- 2,243 bytes parent folder | download | duplicates (2)
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
79
Description: source fixes to compile the program
Author: Roberto Lumbreras <rover@debian.org>

Index: multitee-3.0/Makefile
===================================================================
--- /dev/null	1970-01-01 00:00:00.000000000 +0000
+++ multitee-3.0/Makefile	2014-06-27 13:42:36.186523806 +0200
@@ -0,0 +1,7 @@
+all:		multitee
+
+multitee:       multitee.o sigdfl.o sigsched.o ralloc.o getopt.o fmt.o scan.o
+tee:            tee.o getopt.o ralloc.o fmt.o
+
+clean:
+	rm -f tee multitee *.o *.a *.0 *~ core
Index: multitee-3.0/multitee.c
===================================================================
--- multitee-3.0.orig/multitee.c	2014-06-27 12:42:33.632933053 +0200
+++ multitee-3.0/multitee.c	2014-06-27 13:33:45.003392804 +0200
@@ -14,6 +14,9 @@
 */
 
 #include <signal.h>
+#include <unistd.h>
+#include <stdlib.h>
+#include <stdio.h>
 #include "sigsched.h"
 #include "sigdfl.h"
 #include "getopt.h"
@@ -22,7 +25,6 @@
 #include "fmt.h"
 #include "sod.h"
 #include <errno.h>
-extern int errno;
 
 #ifndef EWOULDBLOCK
 #define EWOULDBLOCK 0
Index: multitee-3.0/sigsched.c
===================================================================
--- multitee-3.0.orig/sigsched.c	2014-06-27 12:42:33.632933053 +0200
+++ multitee-3.0/sigsched.c	2014-06-27 12:42:42.012984574 +0200
@@ -23,7 +23,6 @@
 #include <signal.h>
 #include <errno.h>
 #include <fcntl.h>
-extern int errno;
 #include "config/fdsettrouble.h"
 #include "sigsched.h"
 #include "ralloc.h"
Index: multitee-3.0/ralloc.c
===================================================================
--- multitee-3.0.orig/ralloc.c	2014-06-27 13:30:54.602390177 +0200
+++ multitee-3.0/ralloc.c	2014-06-27 13:31:22.070551422 +0200
@@ -38,10 +38,10 @@
 
 */
 
+#include <unistd.h>
+#include <stdlib.h>
 #include "ralloc.h"
 #include "sod.h"
-extern char *malloc(); /*XXXX*/
-extern void free();
 
 typedef int (*foo)();
 
Index: multitee-3.0/sigdfl.c
===================================================================
--- multitee-3.0.orig/sigdfl.c	1998-02-17 03:25:44.000000000 +0100
+++ multitee-3.0/sigdfl.c	2014-06-27 13:35:11.227902629 +0200
@@ -14,6 +14,8 @@
 */
 
 #include <signal.h>
+#include <sys/types.h>
+#include <unistd.h>
 #include "sigdfl.h"
 
 static int cont = 0;