Browse code

- a last minute warning fix on sun - fixed libraries order for sun cc

Andrei Pelinescu-Onciul authored on 25/09/2002 20:53:14
Showing 2 changed files
... ...
@@ -459,7 +459,7 @@ endif
459 459
 YACC_FLAGS=-d -b cfg
460 460
 # on linux and freebsd keep it empty (e.g. LIBS= )
461 461
 # on solaris add -lxnet (e.g. LIBS= -lxnet)
462
-LIBS=-lfl -ldl -lresolv
462
+LIBS= -lfl -ldl -lresolv
463 463
 
464 464
 
465 465
 #os specific stuff
... ...
@@ -480,9 +480,9 @@ ifeq  ($(OS), solaris)
480 480
 	YACC=yacc
481 481
 
482 482
 ifeq ($(CC_NAME), suncc)
483
-	LIBS+= -lfast 
483
+	LIBS= -lfast -ldl -lresolv
484 484
 endif
485
-	LIBS+= -L/usr/local/lib -L/usr/lib/mysql -lxnet -lrt -lnsl
485
+	LIBS+= -L/usr/local/lib -lfl -L/usr/lib/mysql -lxnet -lrt -lnsl 
486 486
 	# -lrt needed for sched_yield
487 487
 endif
488 488
 
... ...
@@ -256,7 +256,7 @@ static inline struct hostent* resolvehost(const char* name)
256 256
 #endif
257 257
 		){
258 258
 		/* we are lucky, this is an ip address */
259
-		return ip_addr2he((unsigned char*)name, len, ip);
259
+		return ip_addr2he(( char*)name, len, ip);
260 260
 	}
261 261
 	
262 262
 #endif