[comp.lang.c++] Gnu C++ and Sunview

kurisaki@oahu.cs.ucla.edu (11/17/88)

I've been trying to compile Sunview code with the GNU C++ compiler.  The
compiler complains about some of the Sunview and system .h files.  One
problem seems to be that C++ doesn't like type of definitions that rename
themselves by the same name - 
  typedef struct x {
    int y;
    .. } x;  
  In /usr/include/sys/types.h, these types of definitions exist.  Has
anyone found a workaround that doesn't involve changing these .h files?
  
  Another problem that I encountered involved the ordering of the include
files within the Sunview .h files.  In Textsw.h, the type caddr_t is used
prior to its definition and the C++ compiler posts a parse error msg.  
  Is there a workaround for this?
  
  Thanks,
    Paul
    (PKomeiji.ElSegundo@Xerox.com)