Browse Source

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

Andrei Pelinescu-Onciul 23 years ago
parent
commit
169b99f861
2 changed files with 4 additions and 4 deletions
  1. 3 3
      Makefile.defs
  2. 1 1
      resolve.h

+ 3 - 3
Makefile.defs

@@ -459,7 +459,7 @@ endif
 YACC_FLAGS=-d -b cfg
 # on linux and freebsd keep it empty (e.g. LIBS= )
 # on solaris add -lxnet (e.g. LIBS= -lxnet)
-LIBS=-lfl -ldl -lresolv
+LIBS= -lfl -ldl -lresolv
 
 
 #os specific stuff
@@ -480,9 +480,9 @@ ifeq  ($(OS), solaris)
 	YACC=yacc
 
 ifeq ($(CC_NAME), suncc)
-	LIBS+= -lfast 
+	LIBS= -lfast -ldl -lresolv
 endif
-	LIBS+= -L/usr/local/lib -L/usr/lib/mysql -lxnet -lrt -lnsl
+	LIBS+= -L/usr/local/lib -lfl -L/usr/lib/mysql -lxnet -lrt -lnsl 
 	# -lrt needed for sched_yield
 endif
 

+ 1 - 1
resolve.h

@@ -256,7 +256,7 @@ static inline struct hostent* resolvehost(const char* name)
 #endif
 		){
 		/* we are lucky, this is an ip address */
-		return ip_addr2he((unsigned char*)name, len, ip);
+		return ip_addr2he(( char*)name, len, ip);
 	}
 	
 #endif