~ubuntu-branches/ubuntu/saucy/clamav/saucy-backports

« back to all changes in this revision

Viewing changes to debian/patches/0006-Fix-STAT64-definition-and-add-missing-includes.patch

  • Committer: Package Import Robot
  • Author(s): Scott Kitterman
  • Date: 2014-07-15 01:08:10 UTC
  • mfrom: (0.35.47 sid)
  • Revision ID: package-import@ubuntu.com-20140715010810-ru66ek4fun2iseba
Tags: 0.98.4+dfsg-2~ubuntu13.10.1
No-change backport to saucy (LP: #1341962)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
From d1c4510893190e33e55f43e0e674011b5e157f61 Mon Sep 17 00:00:00 2001
2
 
From: Scott Kitterman <scott@kitterman.com>
3
 
Date: Mon, 10 Mar 2014 20:44:29 -0400
4
 
Subject: Fix STAT64 definition and add missing includes.
5
 
 
6
 
---
7
 
 libclamav/clamav.h | 5 ++++-
8
 
 shared/output.c    | 1 +
9
 
 2 files changed, 5 insertions(+), 1 deletion(-)
10
 
 
11
 
diff --git a/libclamav/clamav.h b/libclamav/clamav.h
12
 
index fc6c642..0fc2fe6 100644
13
 
--- a/libclamav/clamav.h
14
 
+++ b/libclamav/clamav.h
15
 
@@ -22,10 +22,13 @@
16
 
 #define __CLAMAV_H
17
 
 
18
 
 /* Certain OSs already use 64bit variables in their stat struct */
19
 
-#define STAT64_BLACKLIST !defined(__FreeBSD__) && !defined(__APPLE__)
20
 
+#define STAT64_BLACKLIST !defined(__FreeBSD__) && !defined(__APPLE__) && !defined(__linux__) && !defined(__FreeBSD_kernel__) && !defined(__hurd__)
21
 
 
22
 
 #if defined(HAVE_STAT64) && STAT64_BLACKLIST
23
 
 
24
 
+#include <stdio.h>
25
 
+#include <sys/types.h>
26
 
+#include <sys/stat.h>
27
 
 #include <unistd.h>
28
 
 
29
 
 #define STATBUF struct stat64
30
 
diff --git a/shared/output.c b/shared/output.c
31
 
index 3af3acd..5e947a5 100644
32
 
--- a/shared/output.c
33
 
+++ b/shared/output.c
34
 
@@ -51,6 +51,7 @@
35
 
 #endif
36
 
 
37
 
 #include "output.h"
38
 
+#include "libclamav/clamav.h"
39
 
 #include "libclamav/others.h"
40
 
 #include "libclamav/str.h"
41