> > > > Christopher, I got the latest iss, (1.3) and built it on my sunos5 machine. > > I had to do a lot of casting to get rid of the warnings, add in one include > > file, and as a temporary kludge put in an ifdef sun undef sun > > section so I wouldn't get the siginterrupt stuff, it's really a bsd thing, not > > a sun thing...but since sunos5 is a sun machine sun was still defined...perhaps > > you want #ifdef bsd around that or something...anyway, I'm including the > > munged iss.c as an attachment in case you want to see the changes. It compiles > > cleanly now. > > > Would it be possible to get a diff of the changes? > Sure! Remember though the one part about #ifdef sun #undef sun #endif is just a kludge to get it to build on sunos5...it really needs something more os specific rather than hardware specific. So, for example where you use ifdef sun, you probably mean something like ifdef bsd. Getting the symbol set up is probably something for the makefile to do, (or even nicer Imakefile which already would get you os specific defines if you use the X config files.) This has all the changes to work with SVR4, or more specifically SunOS5. Patrick ---------- X-Sun-Data-Type: default X-Sun-Data-Description: default X-Sun-Data-Name: iss.c.patch X-Sun-Charset: us-ascii X-Sun-Content-Lines: 61 37a38 > #include 61,63c62,64 < #define SHOWMOUNT "/usr/etc/showmount" < #define RUSERS "/usr/ucb/rusers" < #define RPCINFO "/usr/etc/rpcinfo" --- > #define SHOWMOUNT "/usr/sbin/showmount" > #define RUSERS "/usr/bin/rusers" > #define RPCINFO "/usr/bin/rpcinfo" 64a66,68 > #ifdef sun > #undef sun > #endif 85c89,90 < donothing() /* Signal sets done variable to tell program --- > void > donothing(int signum) /* Signal sets done variable to tell program 117c122,123 < (void) setsockopt(soc, SOL_SOCKET, SO_REUSEADDR, &thirty, sizeof(thirty)); --- > (void) setsockopt(soc, SOL_SOCKET, SO_REUSEADDR,(const char *)&thirty, > sizeof(thirty)); 128c134 < r = connect(soc, &a, sizeof(a)); --- > r = connect(soc,(struct sockaddr *)&a, sizeof(a)); 305c311 < for (i = 0; i <= (strlen(hname)); i++) --- > for (i = 0; i <= (int)strlen(hname); i++) 382c388 < for (i = 0; i <= (strlen(temp1)); i++) --- > for (i = 0; i <= (int)strlen(temp1); i++) 412c418,419 < (void) setsockopt(sd, SOL_SOCKET, SO_LINGER, &thirty, sizeof(thirty)); --- > (void) setsockopt(sd, SOL_SOCKET, SO_LINGER,(const char *)&thirty, > sizeof(thirty)); 472c479,480 < (void) setsockopt(sd, SOL_SOCKET, SO_LINGER, &thirty, sizeof(thirty)); --- > (void) setsockopt(sd, SOL_SOCKET, SO_LINGER, (const char *)&thirty, > sizeof(thirty)); 759,760d766 < extern int inet_addr(); < extern char *rindex(); 785c791 < bcopy(HostEntryPointer->h_addr, (char *) &SocketInetAddr.sin_addr, --- > memcpy((char *) &SocketInetAddr.sin_addr, HostEntryPointer->h_addr, 803c809 < SocketDescriptor = socket(AF_INET, SOCK_STREAM, 6); --- > SocketDescriptor = socket(PF_INET, SOCK_STREAM, 6); 809c815 < if (!(connect(SocketDescriptor, (char *) &SocketInetAddr, --- > if (!(connect(SocketDescriptor, (struct sockaddr *) &SocketInetAddr, _______________________________________________________________________ / These opinions are mine, and not Amdahl's (except by coincidence;). \ | (\ | | Patrick J. Horgan Amdahl Corporation \\ Have | | patrick@amdahl.com 1250 East Arques Avenue \\ _ Sword | | Phone : (408)992-2779 P.O. Box 3470 M/S 316 \\/ Will | | FAX : (408)773-0833 Sunnyvale, CA 94088-3470 _/\\ Travel | \___________________________O16-2294________________________\)__________/