home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / e20313sr.zip / emacs / 20.3.1 / src / s / netbsd.h < prev    next >
C/C++ Source or Header  |  1999-06-27  |  2KB  |  82 lines

  1. /* s/ file for netbsd system.  */
  2.  
  3. /* Get most of the stuff from bsd4.3 */
  4. #include "bsd4-3.h"
  5.  
  6. #if defined (__alpha__) && !defined (__ELF__)
  7. #define NO_SHARED_LIBS
  8. #endif
  9.  
  10. /* For mem-limits.h.  */
  11. #define BSD4_2
  12.  
  13. #undef KERNEL_FILE
  14. #undef LDAV_SYMBOL
  15. #define HAVE_GETLOADAVG
  16.  
  17. #define HAVE_UNION_WAIT
  18.  
  19. #define SIGNALS_VIA_CHARACTERS
  20.  
  21. #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base)
  22.  
  23. /* netbsd uses OXTABS instead of the expected TAB3.  */
  24. #define TABDLY OXTABS
  25. #define TAB3 OXTABS
  26.  
  27. #define A_TEXT_OFFSET(x) (sizeof (struct exec))
  28. #define A_TEXT_SEEK(hdr) (N_TXTOFF(hdr) + A_TEXT_OFFSET(hdr))
  29.  
  30. #define HAVE_TERMIOS
  31. #define NO_TERMIO
  32.  
  33. #define LIBS_DEBUG
  34. /* -lutil is not needed for NetBSD >0.9.  */
  35. /* #define LIBS_SYSTEM -lutil */
  36. #define LIBS_TERMCAP -ltermcap
  37.  
  38. #define NEED_ERRNO
  39. #define SYSV_SYSTEM_DIR
  40.  
  41. /* Netbsd has POSIX-style pgrp behavior.  */
  42. #undef BSD_PGRPS
  43.  
  44. #define GETPGRP_NO_ARG
  45.  
  46. #if !defined (NO_SHARED_LIBS) && ! defined (__ELF__)
  47. /* These definitions should work for either dynamic or static linking,
  48.    whichever is the default for `cc -nostdlib'.  */
  49. #define HAVE_TEXT_START        /* No need to define `start_of_text'.  */
  50. #define START_FILES pre-crt0.o /usr/lib/crt0.o
  51. #define UNEXEC unexsunos4.o
  52. #define RUN_TIME_REMAP
  53.  
  54. /* Try to make this work for both 0.9 and >0.9.  */
  55. #ifndef N_TRELOFF
  56. #define N_PAGSIZ(x) __LDPGSZ
  57. #define N_BSSADDR(x) (N_ALIGN(x, N_DATADDR(x)+x.a_data))
  58. #define N_TRELOFF(x) N_RELOFF(x)
  59. #endif
  60. #endif /* not NO_SHARED_LIBS */
  61.  
  62. #define HAVE_WAIT_HEADER
  63. #define WAIT_USE_INT
  64.  
  65. #define NO_MATHERR
  66.  
  67. #define AMPERSAND_FULL_NAME
  68.  
  69. #ifdef __ELF__
  70. /* Here is how to find X Windows.  LD_SWITCH_X_SITE_AUX gives an -R option
  71.    says where to find X windows at run time.  We convert it to a -rpath option
  72.    which is what OSF1 uses.  */
  73. #define LD_SWITCH_SYSTEM `echo LD_SWITCH_X_SITE_AUX | sed -e 's/-R/-Wl,-rpath,/'`
  74. #endif /* __ELF__ */
  75.  
  76. /* On post 1.3 releases of NetBSD, gcc -nostdlib also clears
  77.    the library search parth, i.e. it won't search /usr/lib
  78.    for libc and friends. Using -nostartfiles instead avoids
  79.    this problem, and will also work on earlier NetBSD releases */
  80.  
  81. #define LINKER $(CC) -nostartfiles
  82.