home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / gdb-4.16-base.tgz / gdb-4.16-base.tar / fsf / gdb / readline / sysdep-norm.h < prev    next >
C/C++ Source or Header  |  1992-11-04  |  1KB  |  37 lines

  1. /* System-dependent stuff, for ``normal'' systems */
  2. /* If you think you need to change this file, then you are wrong.  In order to
  3.    avoid a huge ugly mass of nested #ifdefs, you should create a new file just
  4.    for your system, which contains exactly those #includes and definitions that
  5.    your system needs, AND NOTHING MORE!  Then, add that file to the appropriate
  6.    place in configure.in, and viola, you are done.  sysdep-sunos4.h is a good
  7.    example of how to do this. */
  8.  
  9. #ifdef __GNUC__
  10. #define alloca __builtin_alloca
  11. #else
  12. #if defined (sparc) && defined (sun)
  13. #include <alloca.h>
  14. #endif
  15. #ifndef alloca                /* May be a macro, with args. */
  16. extern char *alloca ();
  17. #endif
  18. #endif
  19.  
  20. #include <sys/types.h>            /* Needed by dirent.h */
  21.  
  22. #if defined (USG) && defined (TIOCGWINSZ)
  23. #include <sys/stream.h>
  24. #if defined (USGr4) || defined (USGr3)
  25. #include <sys/ptem.h>
  26. #endif /* USGr4 */
  27. #endif /* USG && TIOCGWINSZ */
  28.  
  29. #include <dirent.h>
  30. typedef struct dirent dirent;
  31.  
  32. /* SVR4 systems should use <termios.h> rather than <termio.h>. */
  33.  
  34. #if defined (USGr4)
  35. #define _POSIX_VERSION
  36. #endif
  37.