Commit 2ca45c44 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Import pthread <sys/types.h> compatibility check.

parent bd4aaf1d
......@@ -22,6 +22,7 @@ Changes included in OpenLDAP 1.1.x
Build environment
Added DB2 patch information
Added distclean target
Added pthread sys/types.h compatibility check
Fixed doc/man reinstall bug
Fixed make clean
Fixed --disable-slurpd
......
This diff is collapsed.
......@@ -788,6 +788,22 @@ if test $ol_with_threads = auto -o $ol_with_threads = yes \
if test $ol_with_yielding_select = auto ; then
ol_with_yielding_select=yes
fi
AC_CACHE_CHECK([for misplaced posix thread in headers],
[ol_cv_header_misplaced_pthreads], [
AC_TRY_COMPILE([
#include <sys/types.h>
typedef double pthread_t;
], [
pthread_t thread = 0.0;
],
[ol_cv_header_misplaced_pthreads=no],
[ol_cv_header_misplaced_pthreads=yes])
])
if test "$ol_cv_header_misplaced_pthreads" = yes ; then
AC_MSG_ERROR([pthread types are misplaced, use --with-threads=posix]);
fi
fi
fi
......@@ -870,6 +886,22 @@ if test $ol_link_threads = no ; then
ol_with_threads=no
fi
AC_CACHE_CHECK([for misplaced posix thread in headers],
[ol_cv_header_misplaced_pthreads], [
AC_TRY_COMPILE([
#include <sys/types.h>
typedef double pthread_t;
], [
pthread_t thread = 0.0;
],
[ol_cv_header_misplaced_pthreads=no],
[ol_cv_header_misplaced_pthreads=yes])
])
if test "$ol_cv_header_misplaced_pthreads" = yes ; then
AC_MSG_ERROR([pthread types are misplaced, use --with-threads=posix]);
fi
AC_DEFINE(NO_THREADS,1)
LTHREAD_LIBS=""
fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment