git-svn: trunk@1509
Nigel Horne authored on 2005/05/01 20:47:49... | ... |
@@ -15,7 +15,7 @@ |
15 | 15 |
* along with this program; if not, write to the Free Software |
16 | 16 |
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
17 | 17 |
*/ |
18 |
-static char const rcsid[] = "$Id: pdf.c,v 1.3 2005/04/30 13:12:28 nigelhorne Exp $"; |
|
18 |
+static char const rcsid[] = "$Id: pdf.c,v 1.4 2005/05/01 11:47:49 nigelhorne Exp $"; |
|
19 | 19 |
|
20 | 20 |
#if HAVE_CONFIG_H |
21 | 21 |
#include "clamav-config.h" |
... | ... |
@@ -39,6 +39,7 @@ static char const rcsid[] = "$Id: pdf.c,v 1.3 2005/04/30 13:12:28 nigelhorne Exp |
39 | 39 |
#include <fcntl.h> |
40 | 40 |
#include <stdlib.h> |
41 | 41 |
#include <limits.h> |
42 |
+#include <errno.h> |
|
42 | 43 |
|
43 | 44 |
#ifdef HAVE_ZLIB_H |
44 | 45 |
#include <zlib.h> |
... | ... |
@@ -130,8 +131,6 @@ cli_pdf(const char *dir, int desc) |
130 | 130 |
#endif |
131 | 131 |
|
132 | 132 |
if(fout < 0) { |
133 |
- extern int errno; |
|
134 |
- |
|
135 | 133 |
cli_errmsg("cli_pdf: can't create temporary file %s: %s\n", fullname, strerror(errno)); |
136 | 134 |
close(fout); |
137 | 135 |
munmap(buf, size); |