2007-02-28 15:31:08 -05:00
|
|
|
$OpenBSD: patch-configure,v 1.6 2007/02/28 20:31:08 mbalmer Exp $
|
|
|
|
--- configure.orig Wed Feb 14 08:34:54 2007
|
|
|
|
+++ configure Wed Feb 14 08:39:18 2007
|
|
|
|
@@ -21659,11 +21659,11 @@ cat >>conftest.$ac_ext <<_ACEOF
|
2006-08-15 14:48:22 -04:00
|
|
|
#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;
|
|
|
|
}
|
2007-02-28 15:31:08 -05:00
|
|
|
@@ -22220,6 +22220,7 @@ _ACEOF
|
|
|
|
cat confdefs.h >>conftest.$ac_ext
|
2005-01-09 12:07:52 -05:00
|
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
|
|
/* end confdefs.h. */
|
|
|
|
+#include <sys/types.h>
|
2007-02-28 15:31:08 -05:00
|
|
|
#include <netinet/in.h>
|
|
|
|
|
2005-01-09 12:07:52 -05:00
|
|
|
#include <resolv.h>
|
2007-02-28 15:31:08 -05:00
|
|
|
@@ -23140,11 +23141,9 @@ _ACEOF
|
|
|
|
;;
|
2005-01-09 12:07:52 -05:00
|
|
|
openbsd*)
|
|
|
|
if test "$have_pthreads" = "yes"; then
|
2005-09-22 17:14:55 -04:00
|
|
|
- if test "$use_cr" = "no"; then
|
2007-02-28 15:31:08 -05:00
|
|
|
- THREAD_LIBS="-pthread"
|
2005-06-29 06:12:09 -04:00
|
|
|
- else
|
2007-02-28 15:31:08 -05:00
|
|
|
- THREAD_LIBS="-pthread -lc_r"
|
2005-06-29 06:12:09 -04:00
|
|
|
- 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
|
2007-02-28 15:31:08 -05:00
|
|
|
@@ -24218,6 +24217,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;
|
2007-02-28 15:31:08 -05:00
|
|
|
@@ -24270,6 +24270,7 @@ cat confdefs.h >>conftest.$ac_ext
|
2006-08-15 14:48:22 -04:00
|
|
|
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;
|