svn commit: samba r17803 - in branches/SAMBA_3_0/source/libaddns: .
jerry at samba.org
jerry at samba.org
Thu Aug 24 18:48:44 GMT 2006
Author: jerry
Date: 2006-08-24 18:48:44 +0000 (Thu, 24 Aug 2006)
New Revision: 17803
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=17803
Log:
finally get the new libaddns code to build on Solaris 9
Modified:
branches/SAMBA_3_0/source/libaddns/dns.h
branches/SAMBA_3_0/source/libaddns/dnssock.c
Changeset:
Modified: branches/SAMBA_3_0/source/libaddns/dns.h
===================================================================
--- branches/SAMBA_3_0/source/libaddns/dns.h 2006-08-24 18:09:05 UTC (rev 17802)
+++ branches/SAMBA_3_0/source/libaddns/dns.h 2006-08-24 18:48:44 UTC (rev 17803)
@@ -152,6 +152,11 @@
# endif /* don't lie. If we don't have it, then don't use it */
#endif
+/* needed on Sun boxes */
+#ifndef INADDR_NONE
+#define INADDR_NONE 0xFFFFFFFF
+#endif
+
#include "dnserr.h"
Modified: branches/SAMBA_3_0/source/libaddns/dnssock.c
===================================================================
--- branches/SAMBA_3_0/source/libaddns/dnssock.c 2006-08-24 18:09:05 UTC (rev 17802)
+++ branches/SAMBA_3_0/source/libaddns/dnssock.c 2006-08-24 18:48:44 UTC (rev 17803)
@@ -59,7 +59,7 @@
s_in.sin_addr.s_addr = ulAddress;
s_in.sin_port = htons( DNS_TCP_PORT );
- if ( (connect( sockServer, &s_in, sizeof( s_in ))) == SOCKET_ERROR ) {
+ if ( (connect( sockServer, (struct sockaddr*)&s_in, sizeof( s_in ))) == SOCKET_ERROR ) {
dwError = ERROR_DNS_CONNECTION_FAILED;
BAIL_ON_DNS_ERROR( dwError );
}
More information about the samba-cvs
mailing list