Basically, I hate to see the unconditional redefinition. After I sen the first patch, I realized that it may break scripts where people check for the constant, which is now a wasted check, but no sense breaking people's code just because clamav wants to :) -- ----------------------------------------------------------------- | ,''`. Stephen Gran | | : :' : [EMAIL PROTECTED] | | `. `' Debian user, admin, and developer | | `- http://www.debian.org | -----------------------------------------------------------------
diff -Nru php-clamavlib-0.13/clamav.c php-clamavlib-0.13/clamav.c --- php-clamavlib-0.13/clamav.c 2008-09-13 18:07:19.000000000 +0100 +++ php-clamavlib-0.13/clamav.c 2008-09-13 18:07:20.000000000 +0100 @@ -30,6 +30,14 @@ #include <stdio.h> #include <clamav.h> +/** + * This hack is needed to make this code + * compatible with clamav 4 and 5 + **/ + +#ifndef CL_EFSYNC +#define CL_EFSYNC -113 +#endif ZEND_DECLARE_MODULE_GLOBALS(clamav) diff -Nru php-clamavlib-0.13/debian/changelog php-clamavlib-0.13/debian/changelog --- php-clamavlib-0.13/debian/changelog 2008-09-13 18:07:19.000000000 +0100 +++ php-clamavlib-0.13/debian/changelog 2008-09-13 18:07:20.000000000 +0100 @@ -1,3 +1,10 @@ +php-clamavlib (0.13-1.4) unstable; urgency=low + + * Non-maintainer upload. + * Fix FTBFS with libclamav5 + + -- Stephen Gran <[EMAIL PROTECTED]> Sat, 13 Sep 2008 17:55:49 +0100 + php-clamavlib (0.13-1.3) unstable; urgency=low * Non-maintainer upload to fix pending l10n issues.

