Browse Source

*** empty log message ***

Andrei Pelinescu-Onciul 23 years ago
parent
commit
e998c34299
3 changed files with 3 additions and 3 deletions
  1. 1 1
      Makefile.defs
  2. 1 1
      db/db_con.h
  3. 1 1
      main.c

+ 1 - 1
Makefile.defs

@@ -443,7 +443,7 @@ ifeq  ($(OS), SunOS)
 	YACC=yacc
 
 ifeq ($(CC_NAME), suncc)
-	LIBS=-lfast
+	LIBS=-lfast -lresolv
 endif
 	LIBS+=-ldl -L/usr/local/lib -L/usr/lib/mysql -lfl -lxnet -lrt -lnsl
 	# -lrt needed for sched_yield

+ 1 - 1
db/db_con.h

@@ -39,7 +39,7 @@
 typedef struct {
 	char* table;           /* Default table to use */
 	int connected;         /* 1 if database is connected */
-	unsigned char tail[0]; /* Variable length tail
+	unsigned char tail[1]; /* Variable length tail
 				* database module specific */    
 } db_con_t;
 

+ 1 - 1
main.c

@@ -46,7 +46,7 @@
 
 #include <sys/ioctl.h>
 #include <net/if.h>
-#ifdef __sun__
+#ifdef __sun
 #include <sys/sockio.h>
 #endif