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.
7
libclamav/clamav.h | 5 ++++-
9
2 files changed, 5 insertions(+), 1 deletion(-)
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
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__)
22
#if defined(HAVE_STAT64) && STAT64_BLACKLIST
25
+#include <sys/types.h>
26
+#include <sys/stat.h>
29
#define STATBUF struct stat64
30
diff --git a/shared/output.c b/shared/output.c
31
index 3af3acd..5e947a5 100644
38
+#include "libclamav/clamav.h"
39
#include "libclamav/others.h"
40
#include "libclamav/str.h"