]> git.ipfire.org Git - ipfire-2.x.git/blob - src/patches/clamav/llvm-glibc.patch
clamav: Fix compiling
[ipfire-2.x.git] / src / patches / clamav / llvm-glibc.patch
1 Index: clamav-0.97.3/libclamav/c++/llvm/lib/ExecutionEngine/JIT/Intercept.cpp
2 ===================================================================
3 --- clamav-0.97.3.orig/libclamav/c++/llvm/lib/ExecutionEngine/JIT/Intercept.cpp
4 +++ clamav-0.97.3/libclamav/c++/llvm/lib/ExecutionEngine/JIT/Intercept.cpp
5 @@ -52,6 +52,7 @@ static void runAtExitHandlers() {
6 #include <sys/stat.h>
7 #endif
8 #include <fcntl.h>
9 +#include <unistd.h>
10 /* stat functions are redirecting to __xstat with a version number. On x86-64
11 * linking with libc_nonshared.a and -Wl,--export-dynamic doesn't make 'stat'
12 * available as an exported symbol, so we have to add it explicitly.