home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / pine / ccmd / machdep.h < prev    next >
Encoding:
C/C++ Source or Header  |  1988-08-19  |  1.1 KB  |  46 lines

  1. /*
  2.  * This file contains conditional compilation directives describing the
  3.  * presence or absence of certain common features which are not unique
  4.  * to any one generic environment.
  5.  *
  6.  * Machine dependencies which need to be reflected in the compilation
  7.  * of ccmd applications should go into ccmdmd.h.
  8.  */
  9.  
  10. /* One of these needs to be defined... */
  11. /* #define DIRLIB */        /* e.g. 4.2bsd */
  12. /* #define NDIRLIB */        /* e.g. hp-ux */
  13. /* #define DIRENTLIB */        /* e.g. posix? */
  14. /* #define NODIRLIB */        /* e.g. v7 */
  15.  
  16. /* completion is slow when using Sun's YP facility */
  17. /* #define NO_USERNAME_COMPLETION */
  18. /* #define NO_GROUP_COMPLETION */
  19.  
  20. #ifdef BSD
  21. #define HAVE_BSTRING
  22. #endif
  23.  
  24. #ifdef SYSV
  25. #define bzero(a,b)    memset((a),0,b)
  26. #define bcopy(a,b,c)    memcpy((b),(a),c)
  27. #define bcmp(a,b,c)    memcmp((a),(b),c)
  28. #define HAVE_BSTRING
  29. #endif
  30.  
  31. #include "site.h"
  32.  
  33. #if !defined(DIRLIB) && !defined(NDIRLIB) && !defined(DIRENTLIB)
  34. #  ifndef NODIRLIB
  35. #    if BSD
  36. #      define DIRLIB
  37. #    else
  38. #      if hpux
  39. #        define NDIRLIB
  40. #      else
  41. #        define NODIRLIB
  42. #      endif
  43. #    endif
  44. #  endif
  45. #endif
  46.