[Pkg-clamav-commits] [SCM] Debian repository for ClamAV branch, debian/unstable, updated. debian/0.95+dfsg-1-6156-g094ec9b

Török Edvin edwin at clamav.net
Sun Apr 4 01:07:53 UTC 2010


The following commit has been merged in the debian/unstable branch:
commit 3d3ad7256e35dd07778577441508db56e461279e
Author: Török Edvin <edwin at clamav.net>
Date:   Tue Oct 13 17:02:18 2009 +0300

    Don't use pthread if not using threads (for example --disable-pthreads passed to
    configure).

diff --git a/libclamav/fmap.c b/libclamav/fmap.c
index 37204e5..53ff4d2 100644
--- a/libclamav/fmap.c
+++ b/libclamav/fmap.c
@@ -66,7 +66,7 @@ static inline unsigned int fmap_which_page(fmap_t *m, size_t at);
 #define UNPAGE_THRSHLD_HI 8*1024*1024
 #define READAHEAD_PAGES 8
 
-#if defined(HAVE_MMAP) && defined(C_LINUX)
+#if defined(HAVE_MMAP) && defined(C_LINUX) && defined(CL_THREAD_SAFE)
 /*
    WORKAROUND
    Relieve some stress on mmap_sem.

-- 
Debian repository for ClamAV



More information about the Pkg-clamav-commits mailing list