mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-15 03:01:09 +08:00
i before e and other cleanup
This commit is contained in:
parent
8e5f98e7f5
commit
f5fd375d38
10
configure
vendored
10
configure
vendored
@ -1,5 +1,5 @@
|
||||
#! /bin/sh
|
||||
# From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.613 2006/01/06 04:39:05 kurt Exp .
|
||||
# From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.614 2006/01/06 04:41:42 kurt Exp .
|
||||
# Guess values for system-dependent variables and create Makefiles.
|
||||
# Generated by GNU Autoconf 2.59.
|
||||
#
|
||||
@ -24743,17 +24743,17 @@ echo "$as_me: error: pthread_create is not usable, check environment settings" >
|
||||
{ (exit 1); exit 1; }; }
|
||||
fi
|
||||
|
||||
ol_replace_sched_yeild=no
|
||||
ol_replace_sched_yield=no
|
||||
case "$target" in
|
||||
*-*-linux*)
|
||||
ol_replace_sched_yeild=yes
|
||||
ol_replace_sched_yield=yes
|
||||
;;
|
||||
esac
|
||||
|
||||
if test $ol_replace_sched_yeild = yes ; then
|
||||
if test $ol_replace_sched_yield = yes ; then
|
||||
|
||||
cat >>confdefs.h <<\_ACEOF
|
||||
#define REPLACE_SCHED_YEILD 1
|
||||
#define REPLACE_SCHED_YIELD 1
|
||||
_ACEOF
|
||||
|
||||
fi
|
||||
|
10
configure.in
10
configure.in
@ -1587,16 +1587,16 @@ dnl [ol_cv_pthread_lpthread_lexc])
|
||||
AC_MSG_ERROR([pthread_create is not usable, check environment settings])
|
||||
fi
|
||||
|
||||
ol_replace_sched_yeild=no
|
||||
ol_replace_sched_yield=no
|
||||
case "$target" in
|
||||
*-*-linux*)
|
||||
ol_replace_sched_yeild=yes
|
||||
ol_replace_sched_yield=yes
|
||||
;;
|
||||
esac
|
||||
|
||||
if test $ol_replace_sched_yeild = yes ; then
|
||||
AC_DEFINE([REPLACE_SCHED_YEILD],1,
|
||||
[define to replace sched_yeild(2)])
|
||||
if test $ol_replace_sched_yield = yes ; then
|
||||
AC_DEFINE([REPLACE_SCHED_YIELD],1,
|
||||
[define to replace sched_yield(2)])
|
||||
fi
|
||||
|
||||
dnl Check if select causes an yield
|
||||
|
@ -912,8 +912,8 @@
|
||||
/* Define to the version of this package. */
|
||||
#undef PACKAGE_VERSION
|
||||
|
||||
/* define to replace sched_yeild(2) */
|
||||
#undef REPLACE_SCHED_YEILD
|
||||
/* define to replace sched_yield(2) */
|
||||
#undef REPLACE_SCHED_YIELD
|
||||
|
||||
/* Define as the return type of signal handlers (`int' or `void'). */
|
||||
#undef RETSIGTYPE
|
||||
|
@ -20,7 +20,7 @@
|
||||
|
||||
#include <ac/errno.h>
|
||||
|
||||
#if REPLACE_SCHED_YIELD
|
||||
#ifdef REPLACE_SCHED_YIELD
|
||||
#ifndef HAVE_NANOSLEEP
|
||||
#include <ac/socket.h>
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user