2006-08-15 14:48:22 -04:00
|
|
|
$OpenBSD: patch-configure,v 1.5 2006/08/15 18:48:22 mbalmer Exp $
|
|
|
|
--- configure.orig Sat Jul 1 13:12:52 2006
|
|
|
|
+++ configure Mon Jul 31 20:02:42 2006
|
|
|
|
@@ -11828,11 +11828,11 @@ cat >>conftest.$ac_ext <<_ACEOF
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C"
|
2005-01-09 12:07:52 -05:00
|
|
|
#endif
|
|
|
|
-char bzReadOpen ();
|
|
|
|
+char BZ2_bzReadOpen ();
|
|
|
|
int
|
|
|
|
main ()
|
|
|
|
{
|
2006-08-15 14:48:22 -04:00
|
|
|
-return bzReadOpen ();
|
|
|
|
+return BZ2_bzReadOpen ();
|
2005-01-09 12:07:52 -05:00
|
|
|
;
|
|
|
|
return 0;
|
|
|
|
}
|
2006-08-15 14:48:22 -04:00
|
|
|
@@ -12248,6 +12248,8 @@ cat confdefs.h >>conftest.$ac_ext
|
2005-01-09 12:07:52 -05:00
|
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
|
|
/* end confdefs.h. */
|
|
|
|
$ac_includes_default
|
|
|
|
+#include <sys/types.h>
|
|
|
|
+#include <netinet/in.h>
|
|
|
|
#include <resolv.h>
|
|
|
|
_ACEOF
|
|
|
|
rm -f conftest.$ac_objext
|
2006-08-15 14:48:22 -04:00
|
|
|
@@ -13293,13 +13295,9 @@ _ACEOF
|
2005-01-09 12:07:52 -05:00
|
|
|
openbsd*)
|
|
|
|
if test "$have_pthreads" = "yes"; then
|
|
|
|
LIBCLAMAV_LIBS="$LIBCLAMAV_LIBS -pthread"
|
2005-09-22 17:14:55 -04:00
|
|
|
- if test "$use_cr" = "no"; then
|
2005-06-29 06:12:09 -04:00
|
|
|
- CLAMD_LIBS="$CLAMD_LIBS -pthread"
|
|
|
|
- CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -pthread"
|
|
|
|
- else
|
|
|
|
- CLAMD_LIBS="$CLAMD_LIBS -pthread -lc_r"
|
|
|
|
- CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -pthread -lc_r"
|
|
|
|
- fi
|
2005-01-09 12:07:52 -05:00
|
|
|
+ ADDITIONAL_LIBS="-pthread"
|
2005-06-29 06:12:09 -04:00
|
|
|
+ CLAMD_LIBS="$CLAMD_LIBS -pthread"
|
|
|
|
+ CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -pthread"
|
|
|
|
TH_SAFE="-thread-safe"
|
2005-01-09 12:07:52 -05:00
|
|
|
|
2005-06-29 06:12:09 -04:00
|
|
|
cat >>confdefs.h <<\_ACEOF
|
2006-08-15 14:48:22 -04:00
|
|
|
@@ -14497,6 +14495,7 @@ cat confdefs.h >>conftest.$ac_ext
|
2005-01-09 12:07:52 -05:00
|
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
|
|
/* end confdefs.h. */
|
|
|
|
|
2005-06-29 06:12:09 -04:00
|
|
|
+#include <sys/types.h>
|
2006-08-15 14:48:22 -04:00
|
|
|
#include <tcpd.h>
|
|
|
|
int allow_severity = 0;
|
|
|
|
int deny_severity = 0;
|
|
|
|
@@ -14565,6 +14564,7 @@ cat confdefs.h >>conftest.$ac_ext
|
|
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
|
|
/* end confdefs.h. */
|
|
|
|
|
2005-01-09 12:07:52 -05:00
|
|
|
+#include <sys/types.h>
|
|
|
|
#include <tcpd.h>
|
|
|
|
int allow_severity = 0;
|
|
|
|
int deny_severity = 0;
|