ITS#6832 #elif cleanup

This commit is contained in:
Howard Chu 2011-02-17 00:36:30 +00:00
parent 7619c09e61
commit 6f1d218652
4 changed files with 4 additions and 4 deletions

View File

@ -17,7 +17,7 @@
#ifdef HAVE_WINSOCK2
#include <winsock2.h>
#elif HAVE_WINSOCK
#elif defined(HAVE_WINSOCK)
#include <winsock.h>
#endif /* HAVE_WINSOCK(2) */

View File

@ -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;

View File

@ -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 );

View File

@ -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;