patch-include_unixconf_h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. $OpenBSD: patch-include_unixconf_h,v 1.4 2004/08/11 10:15:07 espie Exp $
  2. --- include/unixconf.h.orig Mon Dec 8 00:39:13 2003
  3. +++ include/unixconf.h Tue Aug 10 13:34:38 2004
  4. @@ -19,6 +19,10 @@
  5. */
  6. /* define exactly one of the following four choices */
  7. +/* procure the real define BSD */
  8. +#ifdef HAVE_SYS_PARAM_H
  9. +#include <sys/param.h>
  10. +#endif
  11. /* #define BSD 1 */ /* define for 4.n/Free/Open/Net BSD */
  12. /* also for relatives like SunOS 4.x, DG/UX, and */
  13. /* older versions of Linux */
  14. @@ -32,7 +36,7 @@
  15. /* define any of the following that are appropriate */
  16. -#define SVR4 /* use in addition to SYSV for System V Release 4 */
  17. +/* #define SVR4 /* use in addition to SYSV for System V Release 4 */
  18. /* including Solaris 2+ */
  19. #define NETWORK /* if running on a networked system */
  20. /* e.g. Suns sharing a playground through NFS */
  21. @@ -47,6 +51,7 @@
  22. * job control (note that AIX is SYSV otherwise)
  23. * Also define this for AIX 3.2 */
  24. +#define TERMLIB
  25. #define TERMINFO /* uses terminfo rather than termcap */
  26. /* Should be defined for most SYSV, SVR4 (including
  27. * Solaris 2+), HPUX, and Linux systems. In
  28. @@ -132,7 +137,7 @@
  29. * "extra output" method is used, but not all systems provide access to
  30. * a fine-grained timer.
  31. */
  32. -/* #define TIMED_DELAY */ /* usleep() */
  33. +#define TIMED_DELAY /* usleep() */
  34. #endif
  35. /*
  36. @@ -143,7 +148,7 @@
  37. * A stat system call is done on the mailbox every MAILCKFREQ moves.
  38. */
  39. -#define MAIL /* Deliver mail during the game */
  40. +/* #define MAIL /* Deliver mail during the game */
  41. /* The Andrew Message System does mail a little differently from normal
  42. * UNIX. Mail is deposited in the user's own directory in ~/Mailbox
  43. @@ -284,7 +289,7 @@
  44. #endif
  45. #if defined(BSD) || defined(ULTRIX)
  46. -# if !defined(DGUX) && !defined(SUNOS4)
  47. +# if !defined(DGUX) && !defined(SUNOS4) && !defined(__STDC__)
  48. #define memcpy(d, s, n) bcopy(s, d, n)
  49. #define memcmp(s1, s2, n) bcmp(s2, s1, n)
  50. # endif
  51. @@ -308,9 +313,7 @@
  52. #endif
  53. #ifdef TIMED_DELAY
  54. -# if defined(SUNOS4) || defined(LINUX) || (defined(BSD) && !defined(ULTRIX))
  55. # define msleep(k) usleep((k)*1000)
  56. -# endif
  57. # ifdef ULTRIX
  58. # define msleep(k) napms(k)
  59. # endif