mirror of
https://github.com/Cisco-Talos/clamav.git
synced 2026-05-08 15:47:28 -04:00
Fix building on OpenBSD
This commit is contained in:
@@ -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
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"
|
||||
|
||||
Reference in New Issue
Block a user