commit 6caffe067ac21068ee496003132a65edee2a5d5a
parent 59cdb136429627b740ba26245a2a1bfa81e68ab2
Author: arg <arg@mig29>
Date: Mon, 30 Oct 2006 09:53:07 +0100
applied Stefan Tibus' sun cc patches
Diffstat:
config.mk | | | 6 | ++++++ |
ixp.h | | | 48 | ++++++++++++++++++++++++------------------------ |
2 files changed, 30 insertions(+), 24 deletions(-)
diff --git a/config.mk b/config.mk
@@ -17,6 +17,12 @@ LDFLAGS = ${LIBS}
#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 --git a/ixp.h b/ixp.h
@@ -159,54 +159,54 @@ typedef struct Fcall {
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;