mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
ITS#6832 #elif cleanup
This commit is contained in:
parent
7619c09e61
commit
6f1d218652
@ -17,7 +17,7 @@
|
||||
|
||||
#ifdef HAVE_WINSOCK2
|
||||
#include <winsock2.h>
|
||||
#elif HAVE_WINSOCK
|
||||
#elif defined(HAVE_WINSOCK)
|
||||
#include <winsock.h>
|
||||
#endif /* HAVE_WINSOCK(2) */
|
||||
|
||||
|
@ -626,7 +626,7 @@ void ldap_int_initialize( struct ldapoptions *gopts, int *dbglvl )
|
||||
return;
|
||||
}
|
||||
} /* The WinSock DLL is acceptable. Proceed. */
|
||||
#elif HAVE_WINSOCK
|
||||
#elif defined(HAVE_WINSOCK)
|
||||
{ WSADATA wsaData;
|
||||
if ( WSAStartup( 0x0101, &wsaData ) != 0 ) {
|
||||
return;
|
||||
|
@ -128,7 +128,7 @@ lutil_detach( int debug, int do_close )
|
||||
|
||||
#ifdef HAVE_SETSID
|
||||
(void) setsid();
|
||||
#elif TIOCNOTTY
|
||||
#elif defined(TIOCNOTTY)
|
||||
if ( (sd = open( "/dev/tty", O_RDWR )) != -1 ) {
|
||||
(void) ioctl( sd, TIOCNOTTY, NULL );
|
||||
(void) close( sd );
|
||||
|
@ -73,7 +73,7 @@ int lutil_entropy( unsigned char *buf, ber_len_t nbytes )
|
||||
close(fd);
|
||||
return nbytes > 0 ? -1 : 0;
|
||||
}
|
||||
#elif PROV_RSA_FULL
|
||||
#elif defined(PROV_RSA_FULL)
|
||||
{
|
||||
/* Not used since _WIN32_WINNT not set... */
|
||||
HCRYPTPROV hProv = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user