home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / linux / 25315 < prev    next >
Encoding:
Text File  |  1993-01-24  |  16.8 KB  |  550 lines

  1. Xref: sparky comp.os.linux:25315 rec.games.mud.lp:4982
  2. Nntp-Posting-Host: gyda.ifi.uio.no
  3. Newsgroups: comp.os.linux,rec.games.mud.lp
  4. Path: sparky!uunet!mcsun!sunic!ugle.unit.no!aun.uninett.no!nuug!ifi.uio.no!okolbu
  5. From: okolbu@ifi.uio.no (Olav Kolbu)
  6. Subject: Re: MudOS and Linux (Diffs included!)
  7. Message-ID: <1993Jan24.175335.12724@ifi.uio.no>
  8. Keywords: mud, lpmud
  9. Sender: okolbu@ifi.uio.no (Olav Kolbu)
  10. Organization: Dept. of Informatics, University of Oslo, Norway
  11. References: <C12oBy.1J0@undergrad.math.waterloo.edu> <1993Jan19.014627.15983@wam.umd.edu> <1jfnc3INN61m@darkstar.UCSC.EDU> <1993Jan19.023131.18399@wam.umd.edu> <1993Jan21.171559.27470@ifi.uio.no>
  12. Date: Sun, 24 Jan 1993 17:53:35 GMT
  13. Lines: 534
  14. Originator: okolbu@gyda.ifi.uio.no
  15.  
  16.  
  17. Hello there.
  18.  
  19. The following are context diffs against the 0.9.14.14 version of MudOS
  20. to allow it to compile under Linux. I use kernel 0.99.3 and GCC
  21. 2.2.2d7. Most combinations should work. When you have untarred the 
  22. source for mudos, put the file containing the diffs below in the 
  23. directory above the MudOS source and just type
  24.    patch < diffs.file
  25. If everything goes according to plan, you should just have to edit
  26. the options.h file to fit your local system and type make.
  27. You will get masses of warnings when compiling, mostly about GCC
  28. not managing to inline functions. Disregard these or fix it in
  29. config.h (add  '&& !defined(LINUX)' to line 74)
  30.  
  31. Share and enjoy as PF would have said...
  32.  
  33.                 Olav Kolbu
  34.  
  35. PS. Any good MudOS LPC coders looking for a place to code mail me.. ;-)
  36.  
  37. ---------> Snip here with something sharp <-------------------
  38. diff -rc 0.9.15/GNUmakefile mudos_linux/GNUmakefile
  39. *** 0.9.15/GNUmakefile    Wed Dec 16 08:10:33 1992
  40. --- mudos_linux/GNUmakefile    Wed Jan 20 20:47:26 1993
  41. ***************
  42. *** 46,52 ****
  43.   #STRFUNCS=strfuncs.c
  44.   
  45.   # uncomment UALARM if your machine is missing ualarm()
  46. ! #UALARM=ualarm.c
  47.   
  48.   # RS/6000 AIX: use this OSFLAGS line (required).
  49.   #OSFLAGS=-D_BSD
  50. --- 46,52 ----
  51.   #STRFUNCS=strfuncs.c
  52.   
  53.   # uncomment UALARM if your machine is missing ualarm()
  54. ! UALARM=ualarm.c
  55.   
  56.   # RS/6000 AIX: use this OSFLAGS line (required).
  57.   #OSFLAGS=-D_BSD
  58. ***************
  59. *** 65,71 ****
  60.   # it off.
  61.   #PROFILE_OFF=-DPROFILE_ON
  62.   # Uncomment this if you want to enable profiling of the driver
  63. ! PROFIL=-pg -DPROFILING $(PROFILE_ON)
  64.   
  65.   # define this if you want (compiler) optimization enabled.
  66.   # *WARNING* using high levels of optimization (e.g. -O3) can cause some
  67. --- 65,71 ----
  68.   # it off.
  69.   #PROFILE_OFF=-DPROFILE_ON
  70.   # Uncomment this if you want to enable profiling of the driver
  71. ! #PROFIL=-pg -DPROFILING $(PROFILE_ON)
  72.   
  73.   # define this if you want (compiler) optimization enabled.
  74.   # *WARNING* using high levels of optimization (e.g. -O3) can cause some
  75. ***************
  76. *** 75,81 ****
  77.   # first is the safer, the second is the one likely to produce more
  78.   # improvement in driver speed (it uses GCC flags).
  79.   #
  80. ! #OPTIMIZE=-O
  81.   #OPTIMIZE=-O2 -fomit-frame-pointer -fstrength-reduce
  82.   
  83.   # MIRE stuff
  84. --- 75,81 ----
  85.   # first is the safer, the second is the one likely to produce more
  86.   # improvement in driver speed (it uses GCC flags).
  87.   #
  88. ! OPTIMIZE=-O
  89.   #OPTIMIZE=-O2 -fomit-frame-pointer -fstrength-reduce
  90.   
  91.   # MIRE stuff
  92. ***************
  93. *** 96,113 ****
  94.   #PIPE=-pipe
  95.   
  96.   DEFINES=$(DEBUG) $(DEBUG_MACRO) $(DEBUG_NON_FATAL) $(OSFLAGS) $(MIRE)
  97. ! CFLAGS= $(WARN) $(OPTIMIZE) $(PROFIL) $(STR) $(PIPE) $(DEFINES)
  98.   
  99.   # set CC=cc on a NeXT (or gcc if you have a newer version than the NeXT
  100.   # comes with) and to gcc on other machines (if possible)
  101.   # Note: at this time gcc (2.2.2) for HP doesn't implement varargs properly;
  102.   # if you have problems compiling on an HP, try using cc instead of gcc.
  103. ! CC=cc
  104.   
  105. ! CPP=cc -E
  106.   
  107.   # define this to be bison if you have it, and yacc otherwise
  108. ! YACC=yacc
  109.   YFLAGS = -d
  110.   
  111.   # Add extra libraries here.
  112. --- 96,113 ----
  113.   #PIPE=-pipe
  114.   
  115.   DEFINES=$(DEBUG) $(DEBUG_MACRO) $(DEBUG_NON_FATAL) $(OSFLAGS) $(MIRE)
  116. ! CFLAGS= $(WARN) $(OPTIMIZE) $(PROFIL) $(STR) $(PIPE) $(DEFINES) -DLINUX 
  117.   
  118.   # set CC=cc on a NeXT (or gcc if you have a newer version than the NeXT
  119.   # comes with) and to gcc on other machines (if possible)
  120.   # Note: at this time gcc (2.2.2) for HP doesn't implement varargs properly;
  121.   # if you have problems compiling on an HP, try using cc instead of gcc.
  122. ! CC=gcc
  123.   
  124. ! CPP=gcc -E
  125.   
  126.   # define this to be bison if you have it, and yacc otherwise
  127. ! YACC=bison
  128.   YFLAGS = -d
  129.   
  130.   # Add extra libraries here.
  131. ***************
  132. *** 185,191 ****
  133.       @$(CPP) $(DEFINES) func_spec.c
  134.   
  135.   make_func: make_func.tab.c
  136. !     $(CC) $< -DFUNC_SPEC=\"$(MAKE)\ list_funcs\" -o make_func
  137.   
  138.   make_malloc: $(OBJDIR)/make_malloc.o
  139.       $(CC) -Iobj $(OBJDIR)/make_malloc.o -o make_malloc
  140. --- 185,191 ----
  141.       @$(CPP) $(DEFINES) func_spec.c
  142.   
  143.   make_func: make_func.tab.c
  144. !     $(CC) $< -DFUNC_SPEC=\"$(MAKE)\ list_funcs\" -DLINUX -o make_func
  145.   
  146.   make_malloc: $(OBJDIR)/make_malloc.o
  147.       $(CC) -Iobj $(OBJDIR)/make_malloc.o -o make_malloc
  148. diff -rc 0.9.15/addr_server.c mudos_linux/addr_server.c
  149. *** 0.9.15/addr_server.c    Sat Dec 19 02:43:03 1992
  150. --- mudos_linux/addr_server.c    Wed Jan 20 20:48:22 1993
  151. ***************
  152. *** 15,22 ****
  153. --- 15,24 ----
  154.   #include <sys/time.h>
  155.   #include <sys/socket.h>
  156.   #ifndef apollo
  157. + #ifndef LINUX
  158.   #include <sys/socketvar.h>
  159.   #endif
  160. + #endif
  161.   #ifdef _AIX
  162.   #include <sys/select.h>
  163.   #endif /* _AIX */
  164. ***************
  165. *** 147,152 ****
  166. --- 149,157 ----
  167.     /*
  168.      * listen on socket for connections.
  169.      */
  170. + #ifdef LINUX
  171. + #define SOMAXCONN 5
  172. + #endif
  173.     if(listen(conn_fd,SOMAXCONN) == -1){
  174.       perror("init_conn_sock: listen");
  175.       exit(10);
  176. diff -rc 0.9.15/comm.c mudos_linux/comm.c
  177. *** 0.9.15/comm.c    Sat Dec 19 02:49:39 1992
  178. --- mudos_linux/comm.c    Wed Jan 20 20:50:32 1993
  179. ***************
  180. *** 181,186 ****
  181. --- 181,189 ----
  182.     /*
  183.      * listen on socket for connections.
  184.      */
  185. + #ifdef LINUX
  186. + #define SOMAXCONN 5
  187. + #endif
  188.     if(listen(new_user_fd,SOMAXCONN) == -1){
  189.       perror("init_user_conn: listen");
  190.       exit(10);
  191. diff -rc 0.9.15/comm.h mudos_linux/comm.h
  192. *** 0.9.15/comm.h    Sat Dec 19 02:59:49 1992
  193. --- mudos_linux/comm.h    Wed Jan 20 20:49:22 1993
  194. ***************
  195. *** 8,14 ****
  196. --- 8,16 ----
  197.   
  198.   #include <sys/socket.h>
  199.   #ifndef apollo
  200. + #ifndef LINUX
  201.   #include <sys/socketvar.h>
  202. + #endif
  203.   #endif
  204.   #ifdef _AIX
  205.   #include <sys/select.h>
  206. diff -rc 0.9.15/efunctions.c mudos_linux/efunctions.c
  207. *** 0.9.15/efunctions.c    Sat Dec 19 21:37:38 1992
  208. --- mudos_linux/efunctions.c    Wed Jan 20 20:51:25 1993
  209. ***************
  210. *** 1264,1275 ****
  211.       vec->item[LT_ZONE].u.number = 0;
  212.   #else /* BSD42 */
  213.   #if (defined(hpux) || defined(_SEQUENT_) || defined(_AIX) \
  214. !     || defined(SVR4) || defined(sgi))
  215.       if (!tm->tm_isdst) {
  216.           vec->item[LT_GMTOFF].u.number = timezone;
  217.           vec->item[LT_ZONE].u.string = string_copy(tzname[0]);
  218.       } else {
  219. ! #if (defined(_AIX) || defined(hpux))
  220.           vec->item[LT_GMTOFF].u.number = timezone;
  221.   #else
  222.           vec->item[LT_GMTOFF].u.number = altzone;
  223. --- 1264,1275 ----
  224.       vec->item[LT_ZONE].u.number = 0;
  225.   #else /* BSD42 */
  226.   #if (defined(hpux) || defined(_SEQUENT_) || defined(_AIX) \
  227. !     || defined(SVR4) || defined(sgi) || defined(LINUX))
  228.       if (!tm->tm_isdst) {
  229.           vec->item[LT_GMTOFF].u.number = timezone;
  230.           vec->item[LT_ZONE].u.string = string_copy(tzname[0]);
  231.       } else {
  232. ! #if (defined(_AIX) || defined(hpux) || defined(LINUX))
  233.           vec->item[LT_GMTOFF].u.number = timezone;
  234.   #else
  235.           vec->item[LT_GMTOFF].u.number = altzone;
  236. diff -rc 0.9.15/file.c mudos_linux/file.c
  237. *** 0.9.15/file.c    Sat Dec 19 21:48:54 1992
  238. --- mudos_linux/file.c    Wed Jan 20 20:53:39 1993
  239. ***************
  240. *** 4,10 ****
  241.    */
  242.   
  243.   #include <sys/types.h>
  244. ! #if (defined(_SEQUENT_) || defined(hpux) || defined(sgi))
  245.   #include <sys/sysmacros.h>
  246.   #endif
  247.   #include <sys/stat.h>
  248. --- 4,10 ----
  249.    */
  250.   
  251.   #include <sys/types.h>
  252. ! #if (defined(_SEQUENT_) || defined(hpux) || defined(sgi) || defined(LINUX))
  253.   #include <sys/sysmacros.h>
  254.   #endif
  255.   #include <sys/stat.h>
  256. ***************
  257. *** 50,56 ****
  258.   #ifdef MSDOS
  259.   #define lstat stat
  260.   #else
  261. ! #if !defined(hpux) && !defined(SVR4)
  262.   extern int lstat PROT((char *, struct stat *));
  263.   #endif
  264.   #endif
  265. --- 50,56 ----
  266.   #ifdef MSDOS
  267.   #define lstat stat
  268.   #else
  269. ! #if !defined(hpux) && !defined(SVR4) && !defined(LINUX)
  270.   extern int lstat PROT((char *, struct stat *));
  271.   #endif
  272.   #endif
  273. ***************
  274. *** 201,207 ****
  275.        *  Count files
  276.        */
  277.       for (de = readdir(dirp); de; de = readdir(dirp)) {
  278. ! #if defined(M_UNIX) || defined(_SEQUENT_) || defined(SVR4)
  279.       namelen = strlen(de->d_name);
  280.   #else
  281.       namelen = de->d_namlen;
  282. --- 201,207 ----
  283.        *  Count files
  284.        */
  285.       for (de = readdir(dirp); de; de = readdir(dirp)) {
  286. ! #if defined(M_UNIX) || defined(_SEQUENT_) || defined(SVR4) || defined(LINUX)
  287.       namelen = strlen(de->d_name);
  288.   #else
  289.       namelen = de->d_namlen;
  290. ***************
  291. *** 228,234 ****
  292.       endtemp = temppath + strlen(temppath);
  293.       strcat(endtemp++, "/");
  294.       for(i = 0, de = readdir(dirp); i < count; de = readdir(dirp)) {
  295. ! #if defined(M_UNIX) || defined(_SEQUENT_) || defined(SVR4)
  296.           namelen = strlen(de->d_name);
  297.   #else
  298.       namelen = de->d_namlen;
  299. --- 228,234 ----
  300.       endtemp = temppath + strlen(temppath);
  301.       strcat(endtemp++, "/");
  302.       for(i = 0, de = readdir(dirp); i < count; de = readdir(dirp)) {
  303. ! #if defined(M_UNIX) || defined(_SEQUENT_) || defined(SVR4) || defined(LINUX)
  304.           namelen = strlen(de->d_name);
  305.   #else
  306.       namelen = de->d_namlen;
  307. ***************
  308. *** 1103,1108 ****
  309. --- 1103,1111 ----
  310.       add_message("Fd  Device Number  Inode   Mode    Uid    Gid      Size\n");
  311.       add_message("--  -------------  -----  ------  -----  -----  ----------\n");
  312.   
  313. + #ifdef LINUX
  314. + #define FD_SETSIZE 256
  315. + #endif
  316.       for (i = 0; i < FD_SETSIZE; i++) {
  317.       /* bug in NeXT OS 2.1, st_mode == 0 for sockets */
  318.       if (fstat(i, &stbuf) == -1)
  319. diff -rc 0.9.15/func_spec.c mudos_linux/func_spec.c
  320. *** 0.9.15/func_spec.c    Wed Dec 16 08:01:24 1992
  321. --- mudos_linux/func_spec.c    Wed Jan 20 20:54:05 1993
  322. ***************
  323. *** 120,126 ****
  324.   void write(mixed);
  325.   int write_bytes(string, int, string);
  326.   int write_file(string, string);
  327. ! void dump_file_descriptors(void);
  328.   string *deep_inherit_list(object default: F_THIS_OBJECT);
  329.   string *inherit_list(object default: F_THIS_OBJECT);
  330.   
  331. --- 120,126 ----
  332.   void write(mixed);
  333.   int write_bytes(string, int, string);
  334.   int write_file(string, string);
  335. ! void dump_file_descriptors();
  336.   string *deep_inherit_list(object default: F_THIS_OBJECT);
  337.   string *inherit_list(object default: F_THIS_OBJECT);
  338.   
  339. ***************
  340. *** 198,204 ****
  341.   int socket_acquire(int, string, string, string);
  342.   string socket_error(int);
  343.   string socket_address(int);
  344. ! void dump_socket_status(void);
  345.   
  346.   /*
  347.    * parser 'magic' functions, turned into efuns
  348. --- 198,204 ----
  349.   int socket_acquire(int, string, string, string);
  350.   string socket_error(int);
  351.   string socket_address(int);
  352. ! void dump_socket_status();
  353.   
  354.   /*
  355.    * parser 'magic' functions, turned into efuns
  356. diff -rc 0.9.15/lint.h mudos_linux/lint.h
  357. *** 0.9.15/lint.h    Sun Dec 20 01:09:44 1992
  358. --- mudos_linux/lint.h    Wed Jan 20 21:03:31 1993
  359. ***************
  360. *** 60,74 ****
  361.   void perror(char *);
  362.   #endif
  363.   
  364. ! #if !defined(_SEQUENT_) && !defined(_AIX)
  365.   int read PROT((int, char *, int));
  366.   #endif /* !defined(_SEQUENT_) && !defined(_AIX) */
  367. ! #if !defined(_AIX) && !defined(_SEQUENT_) && !defined(_YACC_)
  368.   void *malloc PROT((unsigned));
  369.   void *realloc PROT((void *, unsigned));
  370.   void free PROT((void *));
  371.   #endif
  372. ! #if !defined(sgi) && !defined(hpux) && !defined(_AIX) && !defined(_SEQUENT_) && !defined(SVR4)
  373.   int mkdir PROT((char *, int));
  374.   #endif
  375.   int fclose PROT_STDIO((FILE *));
  376. --- 60,74 ----
  377.   void perror(char *);
  378.   #endif
  379.   
  380. ! #if !defined(_SEQUENT_) && !defined(_AIX) && !defined(LINUX)
  381.   int read PROT((int, char *, int));
  382.   #endif /* !defined(_SEQUENT_) && !defined(_AIX) */
  383. ! #if !defined(_AIX) && !defined(_SEQUENT_) && !defined(_YACC_) && !defined(LINUX)
  384.   void *malloc PROT((unsigned));
  385.   void *realloc PROT((void *, unsigned));
  386.   void free PROT((void *));
  387.   #endif
  388. ! #if !defined(sgi) && !defined(hpux) && !defined(_AIX) && !defined(_SEQUENT_) && !defined(SVR4) && !defined(LINUX)
  389.   int mkdir PROT((char *, int));
  390.   #endif
  391.   int fclose PROT_STDIO((FILE *));
  392. ***************
  393. *** 84,98 ****
  394. --- 84,102 ----
  395.   void srandom PROT((int));
  396.   #endif
  397.   #ifndef _SEQUENT_
  398. + #ifndef LINUX
  399.   int chdir PROT((char *));
  400.   #endif
  401. + #endif
  402.   int gethostname PROT((char *, int));
  403.   void abort PROT((void));
  404.   int fflush PROT_STDIO((FILE *));
  405.   #ifndef _SEQUENT_
  406. + #ifndef LINUX
  407.   int rmdir PROT((char *));
  408.   int unlink PROT((char *));
  409.   #endif
  410. + #endif
  411.   int fclose PROT_STDIO((FILE *));
  412.   #if !defined(sgi) && !defined(hpux) && !defined(_AIX) && !defined(M_UNIX) && !defined(_SEQUENT_) && !defined(SVR4)
  413.   int system PROT((char *));
  414. ***************
  415. *** 104,126 ****
  416.   void qsort PROT((char *, int, int, int (*)()));
  417.   #endif
  418.   #endif
  419. ! #if !defined(hpux)
  420.   int setsockopt PROT((int, int, int, char *, int));
  421. ! #endif /* !defined(hpux) */
  422.   int fseek PROT_STDIO((FILE *, long, int));
  423.   int wait PROT((int *));
  424.   int pipe PROT((int *));
  425.   int dup2 PROT((int, int));
  426.   unsigned int alarm PROT((unsigned int));
  427. ! #if !defined(hpux)
  428.   int ioctl PROT((int, ...));
  429. ! #endif /* !defined(hpux) */
  430.   int close PROT((int));
  431. ! #if !defined(_SEQUENT_) && !defined(_AIX)
  432.   int write PROT((int, char *, int));
  433. ! #endif /* !defined(_SEQUENT_) && !defined(_AIX) */
  434.   int _filbuf();
  435.   char *crypt PROT((char *, char *));
  436.   #ifdef sun
  437.   char *_crypt PROT((char *, char *));
  438.   #endif
  439. --- 108,136 ----
  440.   void qsort PROT((char *, int, int, int (*)()));
  441.   #endif
  442.   #endif
  443. ! #if !defined(hpux) && !defined(LINUX)
  444.   int setsockopt PROT((int, int, int, char *, int));
  445. ! #endif /* !defined(hpux) && !defined(LINUX) */
  446. ! #ifndef LINUX
  447.   int fseek PROT_STDIO((FILE *, long, int));
  448. + #endif
  449.   int wait PROT((int *));
  450.   int pipe PROT((int *));
  451.   int dup2 PROT((int, int));
  452. + #ifndef LINUX
  453.   unsigned int alarm PROT((unsigned int));
  454. ! #endif
  455. ! #if !defined(hpux) && !defined(LINUX)
  456.   int ioctl PROT((int, ...));
  457. ! #endif /* !defined(hpux) && !defined(LINUX) */
  458.   int close PROT((int));
  459. ! #if !defined(_SEQUENT_) && !defined(_AIX) && !defined(LINUX)
  460.   int write PROT((int, char *, int));
  461. ! #endif /* !defined(_SEQUENT_) && !defined(_AIX) && !defined(LINUX) */
  462.   int _filbuf();
  463. + #ifndef LINUX
  464.   char *crypt PROT((char *, char *));
  465. + #endif
  466.   #ifdef sun
  467.   char *_crypt PROT((char *, char *));
  468.   #endif
  469. ***************
  470. *** 141,149 ****
  471. --- 151,161 ----
  472.   #endif
  473.   #endif
  474.   #ifndef _SEQUENT_
  475. + #ifndef LINUX
  476.   int link PROT((char *, char *));
  477.   int unlink PROT((char *));
  478.   #endif
  479. + #endif
  480.   #endif /* MSDOS */
  481.   
  482.   #endif /* NeXT */
  483. ***************
  484. *** 335,341 ****
  485.   void set_inc_list PROT((char *list));
  486.   int legal_path PROT((char *path));
  487.   struct vector *get_dir PROT((char *path, int));
  488. ! #if !defined(ultrix) && !defined(M_UNIX) && !defined(sgi) && !defined(hpux) && !defined(_AIX) && !defined(NeXT) && !defined(_SEQUENT_) && !defined(SVR4)
  489.   extern int rename PROT((char *, char *));
  490.   #endif
  491.   void set_simul_efun PROT((char *));
  492. --- 347,353 ----
  493.   void set_inc_list PROT((char *list));
  494.   int legal_path PROT((char *path));
  495.   struct vector *get_dir PROT((char *path, int));
  496. ! #if !defined(ultrix) && !defined(M_UNIX) && !defined(sgi) && !defined(hpux) && !defined(_AIX) && !defined(NeXT) && !defined(_SEQUENT_) && !defined(SVR4) && !defined(LINUX)
  497.   extern int rename PROT((char *, char *));
  498.   #endif
  499.   void set_simul_efun PROT((char *));
  500. diff -rc 0.9.15/main.c mudos_linux/main.c
  501. *** 0.9.15/main.c    Thu Dec 17 12:42:33 1992
  502. --- mudos_linux/main.c    Wed Jan 20 21:04:49 1993
  503. ***************
  504. *** 167,172 ****
  505. --- 167,175 ----
  506.      * descriptors than the operating system can handle.  This is a problem
  507.      * that can be resolved by decreasing MAX_USERS, MAX_EFUN_SOCKS, or both.
  508.      */
  509. + #ifdef LINUX
  510. + #define FD_SETSIZE 256
  511. + #endif
  512.     if (dtablesize > FD_SETSIZE) {
  513.       fprintf(stderr,
  514.           "Warning: File descriptor requirements exceed system capacity!\n");
  515. ***************
  516. *** 359,365 ****
  517. --- 362,370 ----
  518.       signal(SIGIOT, sig_iot);
  519.   #endif
  520.       signal(SIGHUP, sig_hup);
  521. + #ifndef LINUX
  522.       signal(SIGBUS, sig_bus);
  523. + #endif
  524.       signal(SIGSEGV, sig_segv);
  525.       signal(SIGILL, sig_ill);
  526.   #endif /* DEBUG */
  527. diff -rc 0.9.15/socket_efuns.c mudos_linux/socket_efuns.c
  528. *** 0.9.15/socket_efuns.c    Sat Dec 19 02:54:49 1992
  529. --- mudos_linux/socket_efuns.c    Wed Jan 20 21:05:48 1993
  530. ***************
  531. *** 9,15 ****
  532. --- 9,17 ----
  533.   #include <sys/ioctl.h>
  534.   #include <sys/socket.h>
  535.   #ifndef apollo
  536. + #ifndef LINUX
  537.   #include <sys/socketvar.h>
  538. + #endif
  539.   #endif
  540.   #ifdef _AIX
  541.   #include <sys/select.h>
  542. ------------------> Snip here as well <---------------------------------
  543.  
  544. ---------------------------------------=+=------------------------------------
  545. Aragorn@NANVAENT (Administrator)       =+=      Olav Kolbu
  546. 130.159.220.8,3000 5pm-9am+sat+sun GMT =+=      okolbu@ifi.uio.no 
  547. ---------------------------------------=+=------------------------------------
  548.         NO, THERE IS ONLY ME. THE _FINAL_ FRONTIER.             -Death
  549.  
  550.