Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OpenLDAP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dragoș Haiduc
OpenLDAP
Commits
daa7907b
Commit
daa7907b
authored
25 years ago
by
Kurt Zeilenga
Browse files
Options
Downloads
Patches
Plain Diff
Move NT Thread test into build/openldap.m4. Still bogus (only
enables if MINGW32 and always enables if MINGW32).
parent
af870722
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
build/openldap.m4
+16
-0
16 additions, 0 deletions
build/openldap.m4
configure
+454
-431
454 additions, 431 deletions
configure
configure.in
+7
-5
7 additions, 5 deletions
configure.in
include/portable.h.in
+2
-2
2 additions, 2 deletions
include/portable.h.in
with
479 additions
and
438 deletions
build/openldap.m4
+
16
−
0
View file @
daa7907b
...
...
@@ -697,6 +697,22 @@ AC_DEFUN([OL_HEADER_GNU_PTH_PTHREAD_H], [
])
])dnl
dnl ====================================================================
dnl Check for NT Threads
AC_DEFUN([OL_NT_THREADS], [
AC_CACHE_CHECK([for NT Threads], [ol_cv_nt_threads], [
# bogus test
if test $ac_cv_mingw32 = yes ; then
ol_cv_nt_threads=yes
else
ol_cv_nt_threads=no
fi
])
if test $ol_cv_nt_threads = yes ; then
AC_DEFINE(HAVE_NT_THREADS,1,[if you have NT Threads])
fi
])
dnl ====================================================================
dnl Check LinuxThreads Header
dnl
dnl defines ol_cv_header linux_threads to 'yes' or 'no'
...
...
This diff is collapsed.
Click to expand it.
configure
+
454
−
431
View file @
daa7907b
This diff is collapsed.
Click to expand it.
configure.in
+
7
−
5
View file @
daa7907b
...
...
@@ -993,18 +993,20 @@ ol_link_threads=no
if test $ol_with_threads = auto -o $ol_with_threads = yes \
-o $ol_with_threads = nt ; then
dnl Not much to check. If we're in mingw32, we assume win32 threads.
if test "$ac_cv_mingw32" = yes ; then
OL_NT_THREADS
if test "$ol_cv_nt_threads" = yes ; then
ol_link_threads=nt
ol_with_threads=found
ol_with_yielding_select=yes
AC_MSG_CHECKING(for NT threads)
AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_NT_THREADS,1,[if you have NT threads])
AC_DEFINE(HAVE_NT_SERVICE_MANAGER,1,[if you have NT Service Manager])
AC_DEFINE(HAVE_NT_EVENT_LOG,1,[if you have NT Event Log])
fi
if test $ol_with_threads = nt ; then
AC_MSG_ERROR([could not locate NT Threads])
fi
fi
if test $ol_with_threads = auto -o $ol_with_threads = yes \
...
...
This diff is collapsed.
Click to expand it.
include/portable.h.in
+
2
−
2
View file @
daa7907b
...
...
@@ -661,7 +661,7 @@
/* set to the number of arguments gethostbyaddr_r() expects */
#undef GETHOSTBYADDR_R_NARGS
/* if you have NT
t
hreads */
/* if you have NT
T
hreads */
#undef HAVE_NT_THREADS
/* if you have NT Service Manager */
...
...
@@ -909,7 +909,7 @@
#ifdef _WIN32
/* don't suck in all of the win32 api */
# define WIN32_LEAN_AND_MEAN
# define WIN32_LEAN_AND_MEAN
1
#endif
#ifndef __NEED_PROTOTYPES
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment