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
David Barchiesi
OpenLDAP
Commits
276ed0bb
Commit
276ed0bb
authored
23 years ago
by
Howard Chu
Browse files
Options
Downloads
Patches
Plain Diff
Move Windows sleep macro from acconfig.h to ac/unistd.h
parent
c1a257a8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
acconfig.h
+0
-2
0 additions, 2 deletions
acconfig.h
include/ac/unistd.h
+11
-0
11 additions, 0 deletions
include/ac/unistd.h
with
11 additions
and
2 deletions
acconfig.h
+
0
−
2
View file @
276ed0bb
...
...
@@ -77,8 +77,6 @@
#ifdef _WIN32
/* don't suck in all of the win32 api */
# define WIN32_LEAN_AND_MEAN 1
# define sleep _sleep
#endif
#ifndef LDAP_NEEDS_PROTOTYPES
...
...
This diff is collapsed.
Click to expand it.
include/ac/unistd.h
+
11
−
0
View file @
276ed0bb
...
...
@@ -60,4 +60,15 @@ LDAP_LUTIL_F(char*)(lutil_getpass) LDAP_P((const char *getpass));
#define ldap_unlockf(x) lutil_unlockf(x)
#include
<lutil_lockf.h>
/*
* Windows: although sleep() will be resolved by both MSVC and Mingw GCC
* linkers, the function is not declared in header files. This is
* because Windows' version of the function is called _sleep(), and it
* is declared in stdlib.h
*/
#ifdef _WIN32
#define sleep _sleep
#endif
#endif
/* _AC_UNISTD_H */
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