Package: csh / 20110502-2

02_libbsd.diff Patch series | download
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
80
81
82
Description: Use libbsd for strlcpy, vis
Forwarded: not-needed
Author: Matej Vela <vela@debian.org>
Last-Update: 2011-07-05

Index: csh-20110502/Makefile
===================================================================
--- csh-20110502.orig/Makefile
+++ csh-20110502/Makefile
@@ -14,6 +14,7 @@
 SRCS=	alloc.c char.c const.c csh.c dir.c dol.c error.c exec.c exp.c file.c \
 	func.c glob.c hist.c init.c lex.c misc.c parse.c proc.c \
 	sem.c set.c str.c time.c
+LDADD+=	-lbsd
 
 CLEANFILES+=error.h const.h
 
Index: csh-20110502/csh.c
===================================================================
--- csh-20110502.orig/csh.c
+++ csh-20110502/csh.c
@@ -39,9 +39,10 @@
 #include <pwd.h>
 #include <stdlib.h>
 #include <string.h>
+#include <bsd/string.h>
 #include <locale.h>
 #include <unistd.h>
-#include <vis.h>
+#include <bsd/vis.h>
 #include <stdarg.h>
 
 #include "csh.h"
Index: csh-20110502/dir.c
===================================================================
--- csh-20110502.orig/dir.c
+++ csh-20110502/dir.c
@@ -35,6 +35,7 @@
 #include <errno.h>
 #include <stdlib.h>
 #include <string.h>
+#include <bsd/string.h>
 #include <unistd.h>
 #include <stdarg.h>
 
Index: csh-20110502/glob.c
===================================================================
--- csh-20110502.orig/glob.c
+++ csh-20110502/glob.c
@@ -35,6 +35,7 @@
 #include <errno.h>
 #include <stdlib.h>
 #include <string.h>
+#include <bsd/string.h>
 #include <unistd.h>
 #include <stdarg.h>
 
Index: csh-20110502/sem.c
===================================================================
--- csh-20110502.orig/sem.c
+++ csh-20110502/sem.c
@@ -37,6 +37,7 @@
 #include <fcntl.h>
 #include <stdlib.h>
 #include <string.h>
+#include <bsd/string.h>
 #include <unistd.h>
 #include <stdarg.h>
 
Index: csh-20110502/str.c
===================================================================
--- csh-20110502.orig/str.c
+++ csh-20110502/str.c
@@ -39,7 +39,7 @@
 
 #include <sys/types.h>
 #include <stdarg.h>
-#include <vis.h>
+#include <bsd/vis.h>
 
 #include "csh.h"
 #include "extern.h"