9c7850a6e9b0b393515f0c408beb25ff1bb175c3
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / clamav / 0004-fix-static-build.patch
1 stats: fix static link
2
3 The stats.c file does not use the dlopen() familly of functions, but
4 includes dlfcn.h, which is missing on uClibc when it is configured as
5 a static-only C library.
6
7 so, simply do not include dlfcn.h.
8
9 Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
10
11 diff -durN clamav-0.98.5.orig/libclamav/stats.c clamav-0.98.5/libclamav/stats.c
12 --- clamav-0.98.5.orig/libclamav/stats.c        2014-11-13 23:30:43.000000000 +0100
13 +++ clamav-0.98.5/libclamav/stats.c     2014-11-25 19:57:14.344291266 +0100
14 @@ -41,7 +41,6 @@
15  #include <sys/sysctl.h>
16  #endif
17  #endif
18 -#include <dlfcn.h>
19  #else
20  #include <Windows.h>
21  #include <tchar.h>