diff -ru libixp.org/config.mk libixp/config.mk --- libixp.org/config.mk Thu Oct 12 17:00:02 2006 +++ libixp/config.mk Sun Oct 29 15:48:29 2006 @@ -17,6 +17,12 @@ #CFLAGS = -g -Wall -O2 ${INCS} -DVERSION=\"${VERSION}\" #LDFLAGS = -g ${LIBS} +# Solaris +#CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\" +#LDFLAGS = ${LIBS} +#LIBS += -lsocket -lnsl +#CFLAGS += -xtarget=ultra + # compiler and linker AR = ar cr CC = cc diff -ru libixp.org/ixp.h libixp/ixp.h --- libixp.org/ixp.h Thu Oct 12 17:00:02 2006 +++ libixp/ixp.h Sun Oct 29 15:48:29 2006 @@ -159,54 +159,54 @@ unsigned char type; unsigned short tag; unsigned int fid; - union { - struct { /* Tversion, Rversion */ +// union { +// struct { /* Tversion, Rversion */ unsigned int msize; char *version; - }; - struct { /* Tflush */ +// }; +// struct { /* Tflush */ unsigned short oldtag; - }; - struct { /* Rerror */ +// }; +// struct { /* Rerror */ char *ename; - }; - struct { /* Ropen, Rcreate */ +// }; +// struct { /* Ropen, Rcreate */ Qid qid; /* +Rattach */ unsigned int iounit; - }; - struct { /* Rauth */ +// }; +// struct { /* Rauth */ Qid aqid; - }; - struct { /* Tauth, Tattach */ +// }; +// struct { /* Tauth, Tattach */ unsigned int afid; char *uname; char *aname; - }; - struct { /* Tcreate */ +// }; +// struct { /* Tcreate */ unsigned int perm; char *name; unsigned char mode; /* +Topen */ - }; - struct { /* Twalk */ +// }; +// struct { /* Twalk */ unsigned int newfid; unsigned short nwname; char *wname[IXP_MAX_WELEM]; - }; - struct { /* Rwalk */ +// }; +// struct { /* Rwalk */ unsigned short nwqid; Qid wqid[IXP_MAX_WELEM]; - }; - struct { /* Twrite */ +// }; +// struct { /* Twrite */ unsigned long long offset; /* +Tread */ /* +Rread */ unsigned int count; /* +Tread */ char *data; - }; - struct { /* Twstat, Rstat */ +// }; +// struct { /* Twstat, Rstat */ unsigned short nstat; unsigned char *stat; - }; - }; +// }; +// }; } Fcall; typedef struct IXPServer IXPServer;