home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / gnu / emacs / bug / 1491 < prev    next >
Encoding:
Text File  |  1992-11-17  |  2.0 KB  |  57 lines

  1. Newsgroups: gnu.emacs.bug
  2. Path: sparky!uunet!convex!darwin.sura.net!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!wang.COM!wjs
  3. From: wjs@wang.COM (William Smith)
  4. Subject: Re: emacs 18.59 under SCO 3.2.2
  5. Message-ID: <Bxu3JF.FAp@wang.com>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: Wang Labs, Lowell MA, USA
  8. References: <1992Nov12.105405.719@rtf.bt.co.uk>
  9. Distribution: gnu
  10. Date: Tue, 17 Nov 1992 00:18:49 GMT
  11. Approved: bug-gnu-emacs@prep.ai.mit.edu
  12. Lines: 43
  13.  
  14. duplain@btcs.bt.co.UK (Andy Duplain) writes:
  15.  
  16. >    Has anyone managed to get emacs 18.59 working under SCO 3.2.2 ?
  17. >    When I run emacs I get "select: Invalid argument" in the echo
  18. >    area.
  19.  
  20.    The select() system in the default C library on SCO 3.2.2 (and ODT 1.1,
  21. maybe 3.2.1 and ODT 1.0 as well) does not work with emacs.  If you are
  22. compiling for SCO and you do not have TCP/IP installed, use the patch
  23. included at the end of this post or just comment out HAVE_SELECT in sco.h.
  24. If you have TCP/IP installed add "#define SCO_SOCKETS" to your config.h.
  25. If you have both TCP/IP and X Windows also add "#define HAVE_X11".  The
  26. select() call in libsocket.a works properly (actually Xselect).  The
  27. resulting config.h file should having the following for TCP/IP and X windows.
  28.  
  29. ---- piece of config.h file ----
  30. ...
  31. ...
  32. #define SCO_SOCKETS        /* use this if you have TCP/IP */
  33. #define HAVE_X11        /* use this if have X Windows  */
  34. #include "s-sco3-2-2.h"        /* OS release (for 3.2.1 read file comments)*/
  35. ...
  36. ...
  37. #define HAVE_X_WINDOWS        /* don't forget to uncomment this for X */
  38. ---- end config.h -------
  39.    
  40. ------add this to s-sco3-2-2.h to fix select() problem--------
  41. ...
  42. ...
  43. #include "s-sco.h"
  44.  
  45. #if !defined(SCO_SOCKETS) && !defined(HAVE_X11)
  46. #undef HAVE_SELECT  /* select() in standard C lib broken */
  47. #endif
  48. ...
  49. ...
  50. ------end s-sco3-2-2.h patch--------
  51. -- 
  52. /*-------------------------------------------------------------------------
  53.    William J. Smith, Wang Labs M/S 019-72B, 1 Industrial Ave      
  54.    Lowell, MA 01851-5161,  (508) 967-6901, email: wjs@wiis.wang.com
  55. --------------------------------------------------------------------------*/
  56.  
  57.