slv@provolone.WISC.EDU (Scott Vandenberg) (03/16/87)
Has anyone had any luck getting EMACS up on an RT running IBM's version of BSD 4.2? I seem to be having problems with redeclarations of variables (the compilation halts). The config.h file I think is ok. The redeclared variables are "sockaddr", "sockproto", "msghdr" while compiling "process.c". There's clearly a problem with the include files being used, but I'm not sure what it is. Has anybody run into a similar problem? Thank you. --Scott Vandenberg U. of Wisconsin Comp. Sci.
tbl@k.cs.cmu.edu (Thomas Lord) (03/17/87)
Posting-Front-End: GNU Emacs 18.36.5 of Sat Feb 14 1987 on k.cs.cmu.edu (berkeley-unix) Scott Vandenberg wants to get rid of compile time errors in process.c. In particular the redeclaration of several types from "<sys/socket.h>". The problem (when compiling for the ibm-rt) is that the preprocessor symbols BSD and SKTPAIR are both defined. At the top of process.c #include <sys/socket.h> is enclosed in an #ifdef BSD. Later in process.c the same include is enclosed in #ifdef SKTPAIR. The easiest fix is to change the second include to read: #ifndef BSD /* socket.h is already loaded if BSD is defined */ #ifdef SKTPAIR #include <sys/socket.h> #endif /*SKTPAIR*/ #endif /*BSD*/ thomas lord tbl@k.cs.cmu.edu lord@andrew.cmu.edu