]> git.wh0rd.org Git - patches.git/blob - man-1.6d-headers.patch
initial import
[patches.git] / man-1.6d-headers.patch
1 --- src/makemsg.c
2 +++ src/makemsg.c
3 @@ -18,6 +18,7 @@
4   *     makemsg -c input message_catalog
5   */
6  #include <stdio.h>
7 +#include <stdlib.h>
8  #include <unistd.h>
9  #ifdef __QNX__
10  #include <unix.h>
11 --- gencat/gencat.c
12 +++ gencat/gencat.c
13 @@ -41,6 +41,7 @@
14  */
15  
16  #include <stdio.h>
17 +#include <stdlib.h>
18  #include <sys/types.h>
19  #ifdef SYSV
20  #include <sys/fcntl.h>
21 @@ -48,6 +49,10 @@
22  #else
23  #include <strings.h>
24  #endif
25 +#ifdef __linux__
26 +#include <string.h>
27 +#include <unistd.h>
28 +#endif
29  #include <sys/file.h>
30  #include <sys/stat.h>
31  #include "gencat.h"
32 --- gencat/genlib.c
33 +++ gencat/genlib.c
34 @@ -48,9 +48,11 @@
35  */
36  
37  #include <stdio.h>
38 +#include <stdlib.h>
39  #ifdef SYSV
40  #include <sys/types.h>
41  #include <unistd.h>
42 +#endif
43  
44  #ifndef __linux__
45  #include <memory.h>
46 @@ -66,9 +68,10 @@
47  {
48      memset(b, '\0', length);
49  }
50 +#else
51 +#include <string.h>
52  #endif
53  
54 -#endif
55  #include <sys/file.h>
56  #include <ctype.h>
57  #include "msgcat.h"