Browse code

- more suncc fixes

Andrei Pelinescu-Onciul authored on 19/09/2002 18:31:27
Showing 1 changed files
... ...
@@ -239,7 +239,7 @@ struct hostent* sip_resolvehost(char* name, unsigned short* port);
239 239
 static inline struct hostent* resolvehost(const char* name)
240 240
 {
241 241
 	static struct hostent* he=0;
242
-#ifdef __sun__
242
+#ifdef __sun
243 243
 	int err;
244 244
 #endif
245 245
 #ifdef DNS_IP_HACK
... ...
@@ -259,7 +259,7 @@ static inline struct hostent* resolvehost(const char* name)
259 259
 	
260 260
 #endif
261 261
 	/* ipv4 */
262
-#ifdef __sun__
262
+#ifdef __sun
263 263
 	if (he) freehostent(he);
264 264
 	he=getipnodebyname(name, AF_INET, 0, &err);
265 265
 #else
... ...
@@ -268,7 +268,7 @@ static inline struct hostent* resolvehost(const char* name)
268 268
 #ifdef USE_IPV6
269 269
 	if(he==0){
270 270
 		/*try ipv6*/
271
-	#ifdef __sun__
271
+	#ifdef __sun
272 272
 		he=getipnodebyname(name, AF_INET6, 0, &err);
273 273
 	#else
274 274
 		he=gethostbyname2(name, AF_INET6);