patch-include_unixconf_h 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. $OpenBSD: patch-include_unixconf_h,v 1.1.1.1 2001/07/05 13:29:05 espie Exp $
  2. --- include/unixconf.h.orig Sun Jun 24 18:57:16 2001
  3. +++ include/unixconf.h Wed Jul 4 11:23:29 2001
  4. @@ -19,7 +19,12 @@
  5. */
  6. /* define exactly one of the following four choices */
  7. -/* #define BSD 1 */ /* define for 4.n BSD */
  8. +/* procure the real define BSD */
  9. +#ifdef HAVE_SYS_PARAM_H
  10. +#include <sys/param.h>
  11. +#endif
  12. +/* #define BSD 1 /* define for 4.n BSD */
  13. +
  14. /* also for relatives like SunOS 4.x, DG/UX, and */
  15. /* older versions of Linux */
  16. /* #define ULTRIX */ /* define for Ultrix v3.0 or higher (but not lower) */
  17. @@ -32,7 +37,7 @@
  18. /* define any of the following that are appropriate */
  19. -#define SVR4 /* use in addition to SYSV for System V Release 4 */
  20. +/* #define SVR4 /* use in addition to SYSV for System V Release 4 */
  21. /* including Solaris 2+ */
  22. #define NETWORK /* if running on a networked system */
  23. /* e.g. Suns sharing a playground through NFS */
  24. @@ -47,6 +52,7 @@
  25. * job control (note that AIX is SYSV otherwise)
  26. * Also define this for AIX 3.2 */
  27. +#define TERMLIB
  28. #define TERMINFO /* uses terminfo rather than termcap */
  29. /* Should be defined for most SYSV, SVR4 (including
  30. * Solaris 2+), HPUX, and Linux systems. In
  31. @@ -132,7 +138,7 @@
  32. * "extra output" method is used, but not all systems provide access to
  33. * a fine-grained timer.
  34. */
  35. -/* #define TIMED_DELAY */ /* usleep() */
  36. +#define TIMED_DELAY /* usleep() */
  37. #endif
  38. /*
  39. @@ -143,7 +149,7 @@
  40. * A stat system call is done on the mailbox every MAILCKFREQ moves.
  41. */
  42. -#define MAIL /* Deliver mail during the game */
  43. +/* #define MAIL /* Deliver mail during the game */
  44. /* The Andrew Message System does mail a little differently from normal
  45. * UNIX. Mail is deposited in the user's own directory in ~/Mailbox
  46. @@ -304,7 +310,7 @@
  47. #endif
  48. #ifdef TIMED_DELAY
  49. -# if defined(SUNOS4) || defined(LINUX)
  50. +# if defined(SUNOS4) || defined(LINUX) || (defined(BSD) && BSD >= 199103)
  51. # define msleep(k) usleep((k)*1000)
  52. # endif
  53. # ifdef ULTRIX