From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <239a99a86dba2d9846e50596e6708d5e@cs.cmu.edu> To: 9fans@cse.psu.edu From: David Swasey MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: [9fans] u9fs Date: Thu, 5 Dec 2002 12:49:48 -0500 Topicbox-Message-UUID: 2e6b5e20-eacb-11e9-9e20-41e7f4b1d025 Thanks for srvssh. Here are the changes I made to get u9fs running on a SunOS 5.5.1 machine. -dave 1. A comment: diff /sys/src/cmd/unix/u9fs/makefile u9fs-new/makefile 5a6,10 > # SunOS > # > # SunOS 5.5.1 does not provide inttypes.h; add -Isunos to CFLAGS and change > # CC and LD to gcc. Add -lsocket, -lnsl to LDFLAGS. > # 2. Magic to get timeval defined: diff /sys/src/cmd/unix/u9fs/plan9.h u9fs-new/plan9.h 5a6,9 > #ifdef sun /* sparc and __svr4__ are also defined on the offending machine */ > #define __EXTENSIONS__ 1 /* for struct timeval */ > #endif > 3. A version of inttypes.h: cat u9fs-new/sunos/inttypes.h /* inttypes.h for SunOS cuff.link.cs.cmu.edu 5.5.1 Generic_103640-29 sun4u sparc SUNW,Ultra-Enterprise */ #ifndef INTTYPES_H #define INTTYPES_H typedef char int8_t; typedef short int16_t; typedef int int32_t; typedef long long int64_t; typedef unsigned char uint8_t; typedef unsigned short uint16_t; typedef unsigned int uint32_t; typedef unsigned long long uint64_t; typedef long int intptr_t; typedef unsigned long int uintptr_t; #endif