patch-source_config_h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. $OpenBSD: patch-source_config_h,v 1.2 2001/08/11 03:22:54 lebel Exp $
  2. --- source/config.h.orig Wed Jul 4 12:42:19 2001
  3. +++ source/config.h Wed Jul 4 12:42:21 2001
  4. @@ -6,6 +6,19 @@
  5. not for profit purposes provided that this copyright and statement are
  6. included in all such copies. */
  7. +/* OpenBSD includes */
  8. +#include <string.h>
  9. +#include <stdio.h>
  10. +#include <stdlib.h>
  11. +#include <unistd.h>
  12. +#include <sys/types.h>
  13. +#include <sys/stat.h>
  14. +#include <fcntl.h>
  15. +
  16. +/* OpenBSD prototypes */
  17. +int check_input(int);
  18. +void user_name(char *);
  19. +
  20. #define CONFIG_H_INCLUDED
  21. #ifdef CONSTANT_H_INCLUDED
  22. Constant.h should always be included after config.h, because it uses
  23. @@ -200,16 +213,15 @@ some of the system defines set up here.
  24. /* This must be unix; change MORIA_LIB as appropriate. */
  25. #define MORIA_SAV "moria.save"
  26. -#define MORIA_LIB(xxx) "/home/math/grabiner/moria/files/xxx"
  27. -#define MORIA_HOU MORIA_LIB(hours)
  28. -#define MORIA_MOR MORIA_LIB(news)
  29. -#define MORIA_TOP MORIA_LIB(scores)
  30. -#define MORIA_HELP MORIA_LIB(roglcmds.hlp)
  31. -#define MORIA_ORIG_HELP MORIA_LIB(origcmds.hlp)
  32. -#define MORIA_WIZ_HELP MORIA_LIB(rwizcmds.hlp)
  33. -#define MORIA_OWIZ_HELP MORIA_LIB(owizcmds.hlp)
  34. -#define MORIA_WELCOME MORIA_LIB(welcome.hlp)
  35. -#define MORIA_VER MORIA_LIB(version.hlp)
  36. +#define MORIA_HOU PREFIX "/share/moria/hours"
  37. +#define MORIA_MOR PREFIX "/share/moria/news"
  38. +#define MORIA_TOP "/var/games/moria/scores"
  39. +#define MORIA_HELP PREFIX "/share/moria/roglcmds.hlp"
  40. +#define MORIA_ORIG_HELP PREFIX "/share/moria/origcmds.hlp"
  41. +#define MORIA_WIZ_HELP PREFIX "/share/moria/rwizcmds.hlp"
  42. +#define MORIA_OWIZ_HELP PREFIX "/share/moria/owizcmds.hlp"
  43. +#define MORIA_WELCOME PREFIX "/share/moria/welcome.hlp"
  44. +#define MORIA_VER PREFIX "/share/moria/version.hlp"
  45. #endif
  46. #endif