Date: Thu, 22 Feb 1996 12:16:17 +1030 (CST) From: Michael Smith <msmith@atrad.adelaide.edu.au> To: brantk@gatekeeper.atlas.com (Brant Katkansky) Cc: hackers@FREEBSD.org Subject: Re: need help w/rpc stuff Message-ID: <199602220146.MAA15423@genesis.atrad.adelaide.edu.au> In-Reply-To: <9602211943.AA00679@billthecat.atlas.com.> from "Brant Katkansky" at Feb 21, 96 11:43:47 am
next in thread | previous in thread | raw e-mail | index | archive | help
Brant Katkansky stands accused of saying: > > I'm porting some proprietary software from SunOS 4.x to run under > FreeBSD 2.1.0-RELEASE and having some problems with included header > files. > > The includes are as follows: > > #include <stdio.h> > #include <string.h> > #include <sys/errno.h> > #include <sys/types.h> > #include <sys/time.h> > #include <rpc/types.h> > #include <rpc/auth.h> > #include <rpc/clnt.h> > #include <rpc/pmap_prot.h> > #include <sys/socket.h> > #include <netinet/in.h> > #include <rpc/svc.h> > #include <rpc/xdr.h> > #include <netdb.h> ... > I suspect that I need to add one or more additional includes, but I have > no idea. BTW, this code compiles fine under SunOS. Your header ordering is broken. SunOS must be shadow-including behind your back (typical Sun braindamage). This works : #include <stdio.h> #include <string.h> #include <sys/errno.h> #include <sys/types.h> #include <sys/time.h> #include <sys/socket.h> #include <netinet/in.h> #include <netdb.h> #include <rpc/types.h> #include <rpc/xdr.h> #include <rpc/auth.h> #include <rpc/clnt.h> #include <rpc/pmap_prot.h> #include <rpc/svc.h> > Brant Katkansky (brantk@atlas.com) -- ]] Mike Smith, Software Engineer msmith@atrad.adelaide.edu.au [[ ]] Genesis Software genesis@atrad.adelaide.edu.au [[ ]] High-speed data acquisition and (GSM mobile) 0411-222-496 [[ ]] realtime instrument control (ph/fax) +61-8-267-3039 [[ ]] Collector of old Unix hardware. "Where are your PEZ?" The Tick [[
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199602220146.MAA15423>