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