summaryrefslogtreecommitdiff
path: root/sci-biology/mcl/files/mcl-14.137-fix-declarations.patch
blob: 4974d352bf7b6750904e830255c4442908b97a71 (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
Fix QA issues related to implicit declarations.

* QA Notice: Package triggers severe warnings which indicate that it
*            may exhibit random runtime failures.
* clmadjust.c:184:10: warning: implicit declaration of function ‘mcxFree’ [-Wimplicit-function-declaration]
* mcxi.c:42:16: warning: implicit declaration of function ‘isatty’ [-Wimplicit-function-declaration]

--- a/src/impala/iface.h
+++ b/src/impala/iface.h
@@ -16,15 +16,15 @@
 
 /* This file currently provides nothing */
 
-dim nu_meet_can  ;
-dim nu_meet_sl   ;
-dim nu_meet_zip  ;
-dim nu_diff_can  ;
-dim nu_diff_sl   ;
-dim nu_diff_zip  ;
-double nu_magic  ;
+extern dim nu_meet_can  ;
+extern dim nu_meet_sl   ;
+extern dim nu_meet_zip  ;
+extern dim nu_diff_can  ;
+extern dim nu_diff_sl   ;
+extern dim nu_diff_zip  ;
+extern double nu_magic  ;
 
-dim mclx_n_thread_g  ;
+extern dim mclx_n_thread_g  ;
 
 #endif
 
--- a/src/shcl/clmadjust.c
+++ b/src/shcl/clmadjust.c
@@ -14,6 +14,7 @@
 #include "report.h"
 #include "clmadjust.h"
 
+#include "util/alloc.h"
 #include "util/io.h"
 #include "util/types.h"
 #include "util/err.h"
--- a/src/shmcx/mcxi.c
+++ b/src/shmcx/mcxi.c
@@ -8,6 +8,7 @@
 */
 
 #include <stdio.h>
+#include <unistd.h>
 
 #include "stack.h"
 #include "glob.h"