Fix building on OpenBSD

This commit is contained in:
Shawn Webb
2013-10-31 12:30:55 -05:00
parent 4a4b84daca
commit fbc144c0ea
4 changed files with 16 additions and 0 deletions

View File

@@ -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
View File

@@ -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 :

View File

@@ -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],

View File

@@ -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"