1 |
jlec 11/01/11 09:06:08 |
2 |
|
3 |
Added: 6.1.3-impl-dec.patch |
4 |
Log: |
5 |
Fix implicit declarations |
6 |
|
7 |
(Portage version: 2.2.0_alpha14/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 sci-libs/ccp4-libs/files/6.1.3-impl-dec.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/ccp4-libs/files/6.1.3-impl-dec.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/ccp4-libs/files/6.1.3-impl-dec.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: 6.1.3-impl-dec.patch |
16 |
=================================================================== |
17 |
diff --git a/lib/DiffractionImage/Bruker/FRM_LIB.c b/lib/DiffractionImage/Bruker/FRM_LIB.c |
18 |
index bfda882..f821e04 100755 |
19 |
--- a/lib/DiffractionImage/Bruker/FRM_LIB.c |
20 |
+++ b/lib/DiffractionImage/Bruker/FRM_LIB.c |
21 |
@@ -38,6 +38,8 @@ FRM_LIB: Routines for reading, writing, and handling frame files. |
22 |
#include "sys/types.h" /* _open, etc. */ |
23 |
#include "sys/stat.h" /* _open, etc. */ |
24 |
|
25 |
+#include <unistd.h> |
26 |
+ |
27 |
#ifndef _MSC_VER |
28 |
int min(int a, int b) |
29 |
{ |
30 |
diff --git a/lib/DiffractionImage/MAR/mar300_header.c b/lib/DiffractionImage/MAR/mar300_header.c |
31 |
index 1a933de..1c40c32 100755 |
32 |
--- a/lib/DiffractionImage/MAR/mar300_header.c |
33 |
+++ b/lib/DiffractionImage/MAR/mar300_header.c |
34 |
@@ -23,6 +23,9 @@ |
35 |
*/ |
36 |
#include "mar300_header.h" |
37 |
|
38 |
+#include <sys/types.h> |
39 |
+#include <unistd.h> |
40 |
+ |
41 |
/* |
42 |
* Local functions |
43 |
*/ |
44 |
diff --git a/lib/DiffractionImage/MAR/mar345_header.c b/lib/DiffractionImage/MAR/mar345_header.c |
45 |
index a8351ea..16d0f7b 100755 |
46 |
--- a/lib/DiffractionImage/MAR/mar345_header.c |
47 |
+++ b/lib/DiffractionImage/MAR/mar345_header.c |
48 |
@@ -32,6 +32,9 @@ |
49 |
*/ |
50 |
#include "mar345_header.h" |
51 |
|
52 |
+#include <sys/types.h> |
53 |
+#include <unistd.h> |
54 |
+ |
55 |
/* |
56 |
* Definitions |
57 |
*/ |
58 |
diff --git a/lib/DiffractionImage/MAR/nb_header.c b/lib/DiffractionImage/MAR/nb_header.c |
59 |
index 07f2741..6364ca4 100755 |
60 |
--- a/lib/DiffractionImage/MAR/nb_header.c |
61 |
+++ b/lib/DiffractionImage/MAR/nb_header.c |
62 |
@@ -20,6 +20,8 @@ |
63 |
#include <io.h> |
64 |
#endif |
65 |
|
66 |
+#include <sys/types.h> |
67 |
+#include <unistd.h> |
68 |
/* |
69 |
* mar software include files |
70 |
*/ |
71 |
diff --git a/lib/DiffractionImage/MAR/swap.c b/lib/DiffractionImage/MAR/swap.c |
72 |
index 443bb8c..0d96b3f 100755 |
73 |
--- a/lib/DiffractionImage/MAR/swap.c |
74 |
+++ b/lib/DiffractionImage/MAR/swap.c |
75 |
@@ -10,6 +10,9 @@ |
76 |
* |
77 |
**********************************************************************/ |
78 |
|
79 |
+#define _XOPEN_SOURCE |
80 |
+#include <unistd.h> |
81 |
+ |
82 |
void swaplong(); |
83 |
void swapshort(); |
84 |
|
85 |
diff --git a/lib/ccif/f_interface.c b/lib/ccif/f_interface.c |
86 |
index 0f6a6b7..a09dc48 100755 |
87 |
--- a/lib/ccif/f_interface.c |
88 |
+++ b/lib/ccif/f_interface.c |
89 |
@@ -25,6 +25,7 @@ |
90 |
********************************************************************/ |
91 |
|
92 |
#include "stdpccts.h" |
93 |
+#include <sys/mman.h> |
94 |
|
95 |
/* This file is terribly organised, and badly needs re-doing. There is probably |
96 |
* scope for splitting this into three modules: |
97 |
diff --git a/lib/src/ccp4_general_f.c b/lib/src/ccp4_general_f.c |
98 |
index 8b5d04f..74ee3f7 100755 |
99 |
--- a/lib/src/ccp4_general_f.c |
100 |
+++ b/lib/src/ccp4_general_f.c |
101 |
@@ -26,6 +26,7 @@ |
102 |
#include <string.h> |
103 |
#include <stdlib.h> |
104 |
#include <math.h> |
105 |
+#include <time.h> |
106 |
#include "ccp4_errno.h" |
107 |
#include "ccp4_fortran.h" |
108 |
#include "ccp4_parser.h" |
109 |
diff --git a/lib/src/ccp4_program.c b/lib/src/ccp4_program.c |
110 |
index 3e83d4d..bb3e975 100755 |
111 |
--- a/lib/src/ccp4_program.c |
112 |
+++ b/lib/src/ccp4_program.c |
113 |
@@ -25,6 +25,7 @@ |
114 |
#include <stdio.h> |
115 |
#include <stdlib.h> |
116 |
#include <string.h> |
117 |
+#include <time.h> |
118 |
#include "ccp4_program.h" |
119 |
#include "ccp4_parser.h" |
120 |
#include "ccp4_utils.h" |
121 |
diff --git a/lib/src/fsplit.c b/lib/src/fsplit.c |
122 |
index ee8af24..c6fb3cd 100755 |
123 |
--- a/lib/src/fsplit.c |
124 |
+++ b/lib/src/fsplit.c |
125 |
@@ -50,6 +50,7 @@ static char sccsid[] = "@(#)fsplit.c 5.5 (Berkeley) 3/12/91"; |
126 |
#include <string.h> |
127 |
#include <sys/types.h> |
128 |
#include <sys/stat.h> |
129 |
+#include <unistd.h> |
130 |
|
131 |
/* |
132 |
* usage: fsplit [-e efile] ... [file] |
133 |
diff --git a/src/clipper_progs/src/pirate/compress42.c b/src/clipper_progs/src/pirate/compress42.c |
134 |
index ea52e96..30dbd56 100755 |
135 |
--- a/src/clipper_progs/src/pirate/compress42.c |
136 |
+++ b/src/clipper_progs/src/pirate/compress42.c |
137 |
@@ -142,6 +142,7 @@ |
138 |
#include <sys/types.h> |
139 |
#include <sys/stat.h> |
140 |
#include <errno.h> |
141 |
+#include <unistd.h> |
142 |
|
143 |
#ifdef DIRENT |
144 |
# include <dirent.h> |
145 |
diff --git a/src/mtz2cif_/mtz2cif.c b/src/mtz2cif_/mtz2cif.c |
146 |
index e224430..c7b82f4 100755 |
147 |
--- a/src/mtz2cif_/mtz2cif.c |
148 |
+++ b/src/mtz2cif_/mtz2cif.c |
149 |
@@ -28,6 +28,7 @@ |
150 |
#include "cmtzlib.h" |
151 |
#include "ccp4_parser.h" |
152 |
#include "ccp4_general.h" |
153 |
+#include "ccp4_program.h" |
154 |
#include "csymlib.h" |
155 |
#include "mtz2cif_lib.h" |