Fix building on OpenBSD

0.98.2
Shawn Webb 12 years ago
parent 4a4b84daca
commit fbc144c0ea
  1. 3
      clamav-config.h.in
  2. 8
      configure
  3. 1
      configure.ac
  4. 4
      libclamav/others.h

@ -293,6 +293,9 @@
/* Define if libtool can extract symbol lists from object files. */
#undef HAVE_PRELOADED_SYMBOLS
/* Define to 1 if you have the <pthread.h> header file */
#undef HAVE_PTHREAD_H
/* Define to 1 if you have the `pthread_yield' function. */
#undef HAVE_PTHREAD_YIELD

8
configure vendored

@ -14446,6 +14446,14 @@ $as_echo "#define HAVE_FCNTL_H 1" >>confdefs.h
fi
ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
if test "x$ac_cv_header_pthread_h" = xyes; then :
$as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h
fi
# Check whether --enable-experimental was given.
if test "${enable_experimental+set}" = set; then :

@ -419,6 +419,7 @@ AC_COMPILE_CHECK_SIZEOF([void *])
AC_CHECK_FUNCS([sysctlbyname])
AC_CHECK_FUNCS([getifaddrs])
AC_CHECK_HEADER([fcntl.h], AC_DEFINE([HAVE_FCNTL_H],1,[Define to 1 if you have the <fcntl.h> header file]))
AC_CHECK_HEADER([pthread.h], AC_DEFINE([HAVE_PTHREAD_H],1,[Define to 1 if you have the <pthread.h> header file]))
AC_ARG_ENABLE([experimental],
[ --enable-experimental enable experimental code],

@ -31,6 +31,10 @@
#include <unistd.h>
#endif
#if HAVE_PTHREAD_H
#include <pthread.h>
#endif
#include <stdio.h>
#include <stdlib.h>
#include "cltypes.h"

Loading…
Cancel
Save