Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / aalib / clang.patch
blob5f8fa80f387df78f52844a9bb4f7dbcd859810d0
1 diff -ur a/configure b/configure
2 --- a/configure 2001-04-26 10:44:54.000000000 -0400
3 +++ b/configure 2023-10-21 23:19:52.941161475 -0400
4 @@ -1005,7 +1005,7 @@
5 #line 1006 "configure"
6 #include "confdefs.h"
8 -main(){return(0);}
9 +int main(){return(0);}
10 EOF
11 if { (eval echo configure:1011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12 ac_cv_prog_cc_works=yes
13 diff -ur a/src/aafire.c b/src/aafire.c
14 --- a/src/aafire.c 2001-04-26 11:30:03.000000000 -0400
15 +++ b/src/aafire.c 2023-10-21 23:46:54.478750904 -0400
16 @@ -1,3 +1,4 @@
17 +#include <stdlib.h>
18 #include <stdio.h>
19 #include "aalib.h"
21 diff -ur a/src/aainfo.c b/src/aainfo.c
22 --- a/src/aainfo.c 2001-04-26 10:37:31.000000000 -0400
23 +++ b/src/aainfo.c 2023-10-21 23:31:54.141133353 -0400
24 @@ -1,4 +1,4 @@
26 +#include <stdlib.h>
27 #include "aalib.h"
28 #include "aaint.h"
29 int main(int argc, char **argv)
30 diff -ur a/src/aakbdreg.c b/src/aakbdreg.c
31 --- a/src/aakbdreg.c 2023-10-21 23:19:00.787207960 -0400
32 +++ b/src/aakbdreg.c 2023-10-21 23:23:49.667253541 -0400
33 @@ -1,4 +1,5 @@
34 #include <malloc.h>
35 +#include <string.h>
36 #include "config.h"
37 #include "aalib.h"
38 #include "aaint.h"
39 diff -ur a/src/aamoureg.c b/src/aamoureg.c
40 --- a/src/aamoureg.c 2023-10-21 23:19:00.787725591 -0400
41 +++ b/src/aamoureg.c 2023-10-21 23:26:51.821477807 -0400
42 @@ -1,4 +1,5 @@
43 #include <malloc.h>
44 +#include <string.h>
45 #include "config.h"
46 #include "aalib.h"
47 #include "aaint.h"
48 diff -ur a/src/aaregist.c b/src/aaregist.c
49 --- a/src/aaregist.c 2023-10-21 23:19:00.788130179 -0400
50 +++ b/src/aaregist.c 2023-10-21 23:19:38.929729034 -0400
51 @@ -1,4 +1,5 @@
52 #include <malloc.h>
53 +#include <string.h>
54 #include "config.h"
55 #include "aalib.h"
56 #include "aaint.h"
57 diff -ur a/src/aasavefont.c b/src/aasavefont.c
58 --- a/src/aasavefont.c 2001-04-26 10:37:31.000000000 -0400
59 +++ b/src/aasavefont.c 2023-10-21 23:51:09.216521714 -0400
60 @@ -1,3 +1,5 @@
61 +#include <stdlib.h>
62 +#include <stdio.h>
63 #include "aalib.h"
64 int main(int argc, char **argv)
66 diff -ur a/src/aatest.c b/src/aatest.c
67 --- a/src/aatest.c 2001-04-26 10:37:31.000000000 -0400
68 +++ b/src/aatest.c 2023-10-21 23:43:16.758422704 -0400
69 @@ -1,3 +1,5 @@
70 +#include <stdlib.h>
71 +#include <string.h>
72 #include "aalib.h"
73 int main(int argc, char **argv)