[comp.unix.i386] ISC Fix

richard@pegasus.com (Richard Foulk) (07/16/90)

Here's part of an article I posted recently to gnu.g++.  This is
something that helped me bring up a number of packages more easily on
386/ix 2.0.2.  If someone could check and see if this is valid for ESIX
and 386/ix 2.2 I'd appreciate it.

I just brought up emacs on ISC 2.0.2 a couple days ago.  It was easier
than I expected.  I don't remember all that I did but here's a useful
tip that should simplify building a number of different packages on
these systems.  Emacs and others want an include file called sys/sioctl.h
which doesn't come with ISC Unix.  So here's how to make it:

First append the following line to /usr/include/sys/types.h:

#define SYS_TYPES_H_DEFINED

and then put the following stuff in /usr/include/sys/sioctl.h

-----------------------------cut here---------------------------
#ifndef SYS_TYPES_H_DEFINED
# include <sys/types.h>
#endif

#ifndef	QENAB
# include <sys/stream.h>
#endif

#include <sys/ptem.h>
-----------------------------cut here---------------------------

after this, building emacs (and rn and less, etc.) was fairly easy.  For
emacs I mostly just used m-intel386.h and s-usg5-2-2.h and it went.


-- 
Richard Foulk		richard@pegasus.com

carroll@m.cs.uiuc.edu (07/16/90)

/* Written  6:14 pm  Jul 15, 1990 by richard@pegasus.com in m.cs.uiuc.edu:comp.unix.i386 */
/* ---------- "ISC Fix" ---------- */
Here's part of an article I posted recently to gnu.g++.  This is
something that helped me bring up a number of packages more easily on
386/ix 2.0.2.  If someone could check and see if this is valid for ESIX
and 386/ix 2.2 I'd appreciate it.
[ comments on adding things to sys/types.h and sys/sioctl.h ]
/* End of text from m.cs.uiuc.edu:comp.unix.i386 */

IMHO the better way to do this is to just modify sys/types.h as follows

#ifndef SYS_TYPES
<original file contents>
#define SYS_TYPES
#endif

This will have the same effect as your fix for sioctl.h (types.h will be
included twice, but the second time it will be an empty file), and avoid the
problem of finding all the places that might include types.h twice.

Alan M. Carroll                Barbara/Marilyn in '92 :
carroll@cs.uiuc.edu            + This time, why not choose the better halves?
Epoch Development Team         
CS Grad / U of Ill @ Urbana    ...{ucbvax,pur-ee,convex}!cs.uiuc.edu!carroll

richard@pegasus.com (Richard Foulk) (07/17/90)

>/* ---------- "ISC Fix" ---------- */
>Here's part of an article I posted recently to gnu.g++.  This is
>something that helped me bring up a number of packages more easily on
>386/ix 2.0.2.  If someone could check and see if this is valid for ESIX
>and 386/ix 2.2 I'd appreciate it.
>[ comments on adding things to sys/types.h and sys/sioctl.h ]
>/* End of text from m.cs.uiuc.edu:comp.unix.i386 */
>
>IMHO the better way to do this is to just modify sys/types.h as follows
>
>#ifndef SYS_TYPES
><original file contents>
>#define SYS_TYPES
>#endif
>
>This will have the same effect as your fix for sioctl.h (types.h will be
>included twice, but the second time it will be an empty file), and avoid the
>problem of finding all the places that might include types.h twice.

I guess I didn't explain well enough.  It wasn't a *fix* for sioctl.h
is was a creation of that file since it didn't come with ISC Unix.  The
handling of sys/types.h was just a peripheral issue.

I did say that didn't I?


-- 
Richard Foulk		richard@pegasus.com