home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / OPENSTEP / UNIX / Games / fortune-mod-9708-I / fortune-mod-9708.NeXT.diff < prev    next >
Encoding:
Text File  |  1997-12-08  |  4.0 KB  |  147 lines

  1. diff -urN ../old/README.NeXT ./README.NeXT
  2. --- ../old/README.NeXT    Wed Dec 31 18:00:00 1969
  3. +++ ./README.NeXT    Mon Dec  8 17:24:20 1997
  4. @@ -0,0 +1,27 @@
  5. +11-19-1997 (year 2000 compliant hehe):
  6. +
  7. +Before you go any further, consult the original documentation.
  8. +
  9. +I managed to compile this on OPENSTEP 4.2.
  10. +    All warnings have been squashed.
  11. +
  12. +Make the following changes to the Makefile
  13. +    1)  change CC to cc instead of gcc 
  14. +        (unless you have gcc installed and want to use it)
  15. +    2)  remove -fomit-frame-pointer from CFLAGS, it appears
  16. +        something in OPENSTEP doesn't like it.
  17. +    3)  remove -s from LDFLAGS.
  18. +    4)    either install GNU install or change the installation
  19. +        targets to remove the install command to create the directories
  20. +        and manually create the directories.
  21. +
  22. +Under NEXTSTEP 3.x, steps 2 and 3 can be omitted and it should theoretically
  23. +    compile.
  24. +
  25. +Double check the path variables at the beginning of the Makefile
  26. +
  27. +This is currently compiled for Intel only.
  28. +
  29. +If there are any problems, let me know.
  30. +
  31. +Andy Wang <awang@plains.nodak.edu>
  32. diff -urN ../old/file ./file
  33. --- ../old/file    Wed Dec 31 18:00:00 1969
  34. +++ ./file    Mon Dec  8 17:24:31 1997
  35. @@ -0,0 +1,31 @@
  36. +diff -urN ../old/README.NeXT ./README.NeXT
  37. +--- ../old/README.NeXT    Wed Dec 31 18:00:00 1969
  38. ++++ ./README.NeXT    Mon Dec  8 17:24:20 1997
  39. +@@ -0,0 +1,27 @@
  40. ++11-19-1997 (year 2000 compliant hehe):
  41. ++
  42. ++Before you go any further, consult the original documentation.
  43. ++
  44. ++I managed to compile this on OPENSTEP 4.2.
  45. ++    All warnings have been squashed.
  46. ++
  47. ++Make the following changes to the Makefile
  48. ++    1)  change CC to cc instead of gcc 
  49. ++        (unless you have gcc installed and want to use it)
  50. ++    2)  remove -fomit-frame-pointer from CFLAGS, it appears
  51. ++        something in OPENSTEP doesn't like it.
  52. ++    3)  remove -s from LDFLAGS.
  53. ++    4)    either install GNU install or change the installation
  54. ++        targets to remove the install command to create the directories
  55. ++        and manually create the directories.
  56. ++
  57. ++Under NEXTSTEP 3.x, steps 2 and 3 can be omitted and it should theoretically
  58. ++    compile.
  59. ++
  60. ++Double check the path variables at the beginning of the Makefile
  61. ++
  62. ++This is currently compiled for Intel only.
  63. ++
  64. ++If there are any problems, let me know.
  65. ++
  66. ++Andy Wang <awang@plains.nodak.edu>
  67. diff -urN ../old/fortune/fortune.c ./fortune/fortune.c
  68. --- ../old/fortune/fortune.c    Thu Aug 28 14:43:52 1997
  69. +++ ./fortune/fortune.c    Mon Dec  8 17:24:20 1997
  70. @@ -107,6 +107,12 @@
  71.  #include    <stdlib.h>
  72.  #include    <string.h>
  73.  
  74. +#ifdef NeXT
  75. +    #include    <libc.h>
  76. +    #include    <sys/dir.h>
  77. +    #define    strdup    NXCopyStringBuffer
  78. +#endif
  79. +
  80.  /* This makes GNU libc to prototype the BSD regex functions */
  81.  #ifdef BSD_REGEX
  82.  #define    _REGEX_RE_COMP
  83. @@ -124,8 +130,10 @@
  84.  
  85.  #include    "strfile.h"
  86.  
  87. -#define    TRUE    1
  88. -#define    FALSE    0
  89. +#ifndef NeXT
  90. +    #define    TRUE    1
  91. +    #define    FALSE    0
  92. +#endif
  93.  #define    bool    short
  94.  
  95.  #define    MINW    6        /* minimum wait if desired */
  96. @@ -589,7 +597,11 @@
  97.  int add_dir(register FILEDESC * fp)
  98.  {
  99.      register DIR *dir;
  100. +#ifdef NeXT
  101. +    register struct direct *dirent;
  102. +#else
  103.      register struct dirent *dirent;
  104. +#endif
  105.      auto FILEDESC *tailp;
  106.      auto char *name;
  107.  
  108. diff -urN ../old/util/strfile.c ./util/strfile.c
  109. --- ../old/util/strfile.c    Wed Apr 30 23:24:01 1997
  110. +++ ./util/strfile.c    Mon Dec  8 17:24:20 1997
  111. @@ -72,6 +72,9 @@
  112.   *I haven't the faintest flipping idea what all that is, so kill the warnings 
  113.   */
  114.  
  115. +#ifdef NeXT
  116. +    #include    <libc.h>
  117. +#endif
  118.  #include    <stdlib.h>
  119.  #include    <unistd.h>
  120.  #include    <netinet/in.h>
  121. @@ -114,8 +117,10 @@
  122.   * 
  123.   */
  124.  
  125. -#define    TRUE    1
  126. -#define    FALSE    0
  127. +#ifndef NeXT
  128. +    #define    TRUE    1
  129. +    #define    FALSE    0
  130. +#endif
  131.  
  132.  #define    STORING_PTRS    (Oflag || Rflag)
  133.  #define    CHUNKSIZE    512
  134. diff -urN ../old/util/unstr.c ./util/unstr.c
  135. --- ../old/util/unstr.c    Fri Apr 18 01:27:01 1997
  136. +++ ./util/unstr.c    Mon Dec  8 17:24:21 1997
  137. @@ -88,6 +88,9 @@
  138.   * get a fortune that contains nothing but a newline.  Karo syrup, syrup.
  139.   * For the gory details, and lots of cussing, see strfile.c
  140.   */
  141. +#ifdef NeXT
  142. +    #include    <libc.h>
  143. +#endif
  144.  #include    <sys/types.h>
  145.  #include    <netinet/in.h>
  146.  #include    <sys/param.h>
  147.