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
Nadezhda Ivanova
OpenLDAP
Commits
9cc9a845
Commit
9cc9a845
authored
26 years ago
by
Kurt Zeilenga
Browse files
Options
Downloads
Patches
Plain Diff
Remaining LDAP_COMPILING_R should be LDAP_R_COMPILE.
parent
84bafea6
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
libraries/libldap/ldap-int.h
+1
-1
1 addition, 1 deletion
libraries/libldap/ldap-int.h
libraries/libldap/util-int.c
+9
-9
9 additions, 9 deletions
libraries/libldap/util-int.c
with
10 additions
and
10 deletions
libraries/libldap/ldap-int.h
+
1
−
1
View file @
9cc9a845
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
#ifndef _LDAP_INT_H
#ifndef _LDAP_INT_H
#define _LDAP_INT_H 1
#define _LDAP_INT_H 1
#ifdef LDAP_COMPIL
ING_R
#ifdef LDAP_
R_
COMPIL
E
#define LDAP_THREAD_SAFE 1
#define LDAP_THREAD_SAFE 1
#endif
#endif
...
...
This diff is collapsed.
Click to expand it.
libraries/libldap/util-int.c
+
9
−
9
View file @
9cc9a845
...
@@ -41,7 +41,7 @@
...
@@ -41,7 +41,7 @@
# define USE_CTIME_R
# define USE_CTIME_R
#endif
#endif
#ifdef LDAP_COMPIL
ING_R
#ifdef LDAP_
R_
COMPIL
E
# ifndef USE_CTIME_R
# ifndef USE_CTIME_R
static
ldap_pvt_thread_mutex_t
ldap_int_ctime_mutex
;
static
ldap_pvt_thread_mutex_t
ldap_int_ctime_mutex
;
# endif
# endif
...
@@ -65,11 +65,11 @@ char *ldap_pvt_ctime( const time_t *tp, char *buf )
...
@@ -65,11 +65,11 @@ char *ldap_pvt_ctime( const time_t *tp, char *buf )
# endif
# endif
#else
#else
# ifdef LDAP_COMPIL
NG_R
# ifdef LDAP_
R_
COMPIL
E
ldap_pvt_thread_mutex_lock
(
&
ldap_int_ctime_mutex
);
ldap_pvt_thread_mutex_lock
(
&
ldap_int_ctime_mutex
);
# endif
# endif
memcpy
(
buf
,
ctime
(
tp
),
26
);
memcpy
(
buf
,
ctime
(
tp
),
26
);
# ifdef LDAP_COMPIL
NG_R
# ifdef LDAP_
R_
COMPIL
E
ldap_pvt_thread_mutex_unlock
(
&
ldap_int_ctime_mutex
);
ldap_pvt_thread_mutex_unlock
(
&
ldap_int_ctime_mutex
);
# endif
# endif
return
buf
;
return
buf
;
...
@@ -111,7 +111,7 @@ int ldap_pvt_gethostbyname_a(
...
@@ -111,7 +111,7 @@ int ldap_pvt_gethostbyname_a(
return
r
;
return
r
;
}
}
return
-
1
;
return
-
1
;
#elif defined( LDAP_COMPIL
ING_R
)
#elif defined( LDAP_
R_
COMPIL
E
)
# define NEED_COPY_HOSTENT
# define NEED_COPY_HOSTENT
struct
hostent
*
he
;
struct
hostent
*
he
;
int
retval
;
int
retval
;
...
@@ -180,7 +180,7 @@ int ldap_pvt_gethostbyaddr_a(
...
@@ -180,7 +180,7 @@ int ldap_pvt_gethostbyaddr_a(
return
r
;
return
r
;
}
}
return
-
1
;
return
-
1
;
#elif defined( LDAP_COMPIL
ING_R
)
#elif defined( LDAP_
R_
COMPIL
E
)
# undef NEED_COPY_HOSTENT
# undef NEED_COPY_HOSTENT
# define NEED_COPY_HOSTENT
# define NEED_COPY_HOSTENT
struct
hostent
*
he
;
struct
hostent
*
he
;
...
@@ -224,18 +224,18 @@ void ldap_pvt_init_utils( void )
...
@@ -224,18 +224,18 @@ void ldap_pvt_init_utils( void )
return
;
return
;
done
=
1
;
done
=
1
;
#ifdef LDAP_COMPIL
ING_R
#ifdef LDAP_
R_
COMPIL
E
#if !defined( USE_CTIME_R ) && !defined( HAVE_REENTRANT_FUNCTIONS )
#if !defined( USE_CTIME_R ) && !defined( HAVE_REENTRANT_FUNCTIONS )
ldap_pvt_thread_mutex_init
(
&
ldap_int_ctime_mutex
,
NULL
);
ldap_pvt_thread_mutex_init
(
&
ldap_int_ctime_mutex
);
#endif
#endif
#if !defined( HAVE_GETHOSTBYNAME_R )
#if !defined( HAVE_GETHOSTBYNAME_R )
ldap_pvt_thread_mutex_init
(
&
ldap_int_gethostbyname_mutex
,
NULL
);
ldap_pvt_thread_mutex_init
(
&
ldap_int_gethostbyname_mutex
);
#endif
#endif
#if !defined( HAVE_GETHOSTBYADDR_R )
#if !defined( HAVE_GETHOSTBYADDR_R )
ldap_pvt_thread_mutex_init
(
&
ldap_int_gethostbyaddr_mutex
,
NULL
);
ldap_pvt_thread_mutex_init
(
&
ldap_int_gethostbyaddr_mutex
);
#endif
#endif
/* call other module init functions here... */
/* call other module init functions here... */
...
...
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