ber_pvt_wsa_err2string.
#undef sock_errno
#undef sock_errstr
#define sock_errno() WSAGetLastError()
-#define sock_errstr(e) WSAGetErrorString(e)
+#define sock_errstr(e) ber_pvt_wsa_err2string(e)
-LIBLUTIL_F (char *) WSAGetErrorString LDAP_P((int));
+LIBLBER_F (char *) ber_pvt_wsa_err2string LDAP_P((int));
#elif MACOS
# define tcp_close( s ) tcpclose( s )
LIBRARY = liblber.la
XLIBRARY = ../liblber.a
+NT_SRCS = nt_err.c
+NT_OBJS = nt_err.lo
+
SRCS= assert.c decode.c encode.c io.c bprint.c \
- memory.c options.c sockbuf.c
+ memory.c options.c sockbuf.c $(@PLAT@_SRCS)
OBJS= assert.lo decode.lo encode.lo io.lo bprint.lo \
- memory.lo options.lo sockbuf.lo
+ memory.lo options.lo sockbuf.lo $(@PLAT@_OBJS)
XSRCS= version.c
PROGRAMS= dtest etest idtest
#define __RETSTR( x ) case x: return #x;
-char *WSAGetErrorString( int err )
+char *ber_pvt_wsa_err2string( int err )
{
switch( err )
{
return "unknown";
}
-char *WSAGetLastErrorString( void )
+#undef __RETSTR
+
+#if 0 /* No one seems to be using these */
+char *ber_pvt_wsa_last_errstring( void )
{
- return WSAGetErrorString( WSAGetLastError() );
+ return ber_pvt_wsa_err2string( WSAGetLastError() );
}
-#undef __RETSTR
-
char *GetErrorString( int err )
{
static char msgBuf[1024];
{
return GetErrorString( GetLastError() );
}
-
-
-
+#endif
LIBRARY = liblutil.a
-NT_SRCS = nt_err.c ntservice.c
-NT_OBJS = nt_err.o ntservice.o slapdmsg.res
+NT_SRCS = ntservice.c
+NT_OBJS = ntservice.o slapdmsg.res
UNIX_SRCS = detach.c
UNIX_OBJS = detach.o