3 Changes to the System Header Files

Contents of this section

You have to change some of the standard header files supplied with your version of Interactive. You also need to change some of the include files in the gcc-lib/include directory.

Let us say the gcc-files are in directory

/usr/local/lib/gcc-lib/i[345]86-isc[34].[0-9]/2.6.x

referred to as "gcc-lib"

3.1 /usr/include/sys/limits.h

and gcc-lib/include/sys/limits.h

          #ifndef OPEN_MAX
          #ifdef ISC
          #define OPEN_MAX        256
          #else
          #define OPEN_MAX        20
          #endif
          #endif
          
OPEN_MAX had to be increased to prevent Xlib Errors (max no. of clients reached).

3.2 /usr/include/sys/ioctl.h

surrounded by

        #ifndef _IOCTL_H 
        #define _IOCTL_H
        ...
        #endif
        
to prevent multiple includes.

3.3 /usr/include/errno.h

(and the corresponding gcc-include-file) add

        #include <net/errno.h>
        
because of EWOULDBLOCK undefined in several places regarding lbx. Surround /usr/include/net/errno.h with

        #ifndef _NET_ERRNO_H
        #define _NET_ERRNO_H
        ...
        #endif
        

to prevent multiple includes were <net/errno.h> is explicit included from the sources.

3.4 /usr/include/rpc/types.h

copy this file to gcc-lib/include/rpc/types.h and change the declaration of malloc() to

         #if !defined(__cplusplus)
         extern char *malloc();
         #endif
         

Note that this is only necessary if you want to build Fresco

Next Chapter, Previous Chapter

Table of contents of this chapter, General table of contents

Top of the document, Beginning of this Chapter