home *** CD-ROM | disk | FTP | other *** search
/ PC-Online 1996 May / PCOnline_05_1996.bin / linux / source / ap / jove / jove4.000 / jove4.14.10.diff
Text File  |  1994-10-06  |  3KB  |  127 lines

  1.  
  2. diff -u --recursive joveorg/Makefile jove4.14.10/Makefile
  3. --- joveorg/Makefile    Sat Jun 19 01:44:28 1993
  4. +++ jove4.14.10/Makefile    Sun Oct  2 12:30:58 1994
  5. @@ -28,22 +28,22 @@
  6.  
  7.  SHELL = /bin/sh
  8.  TMPDIR = /tmp
  9. -RECDIR = /usr/preserve
  10. +RECDIR = $(TMPDIR)
  11.  
  12. -JOVEHOME = /local
  13. +JOVEHOME = /usr
  14.  SHAREDIR = $(JOVEHOME)/lib/jove
  15.  LIBDIR = $(JOVEHOME)/lib/jove
  16.  BINDIR = $(JOVEHOME)/bin
  17.  MANDIR = $(JOVEHOME)/man/man$(MANEXT)
  18.  MANEXT = 1
  19. -DFLTSHELL = /bin/csh
  20. +DFLTSHELL = /bin/sh
  21.  
  22.  # to install executable files
  23. -XINSTALL=cp
  24. -#XINSTALL=install -c -m 755 # -s
  25. +#XINSTALL=cp
  26. +XINSTALL=install -c -m 755 # -s
  27.  # to install text files
  28. -TINSTALL=cp
  29. -#TINSTALL=install -c -m 644
  30. +#TINSTALL=cp
  31. +TINSTALL=install -c -m 644
  32.  
  33.  PROG = jove
  34.  VERSION = 4.14
  35. @@ -62,7 +62,7 @@
  36.  # Select optimization level (flags passed to compiling and linking steps).
  37.  # On most systems, -g for debugging, -O for optimization.
  38.  
  39. -OPTFLAGS = -g
  40. +OPTFLAGS = -O2 -fomit-frame-pointer
  41.  
  42.  # Select the right libraries for your system.
  43.  #    2.10BSD:LIBS = -ltermcap
  44. @@ -92,7 +92,7 @@
  45.  #    PDP-11 without separate I&D: -n
  46.  
  47.  
  48. -LDFLAGS =
  49. +LDFLAGS = -s
  50.  
  51.  # define a symbol for your OS if it hasn't got one.  See sysdep.h.
  52.  # Jove has very few defaults, you will almost certainly need to define
  53. @@ -121,7 +121,7 @@
  54.  #
  55.  # You can just say 'make SYSDEFS=-Dwhatever' on these systems.
  56.  
  57. -SYSDEFS = 
  58. +SYSDEFS = -DBSDPOSIX
  59.  
  60.  # for SCO Xenix, set
  61.  #    MEMFLAGS = -Mle
  62. @@ -131,6 +131,7 @@
  63.  
  64.  # For SVR4 (/usr/ucb/cc will NOT work because of setjmp.h).
  65.  # CC = /usr/bin/cc
  66. +CC = gcc
  67.  
  68.  # Load invocation of cc.
  69.  # LDCC = purify $(CC)
  70. Only in jove4.14.10: Makefile.orig
  71. diff -u --recursive joveorg/io.c jove4.14.10/io.c
  72. --- joveorg/io.c    Thu Jun 17 15:03:12 1993
  73. +++ jove4.14.10/io.c    Sun Oct  2 12:30:58 1994
  74. @@ -663,7 +663,13 @@
  75.  
  76.  # ifdef    USE_GETPWNAM
  77.  
  78. +#define _POSIX_SOURCE 1
  79. +#undef _FEATURES_H
  80. +#undef _GNU_SOURCE
  81. +#undef _SVID_SOURCE
  82. +#include <features.h>
  83.  #include <pwd.h>
  84. +#undef _POSIX_SOURCE
  85.  
  86.  private void
  87.  get_hdir(user, buf)
  88. Only in jove4.14.10: io.c.orig
  89. diff -u --recursive joveorg/jove.c jove4.14.10/jove.c
  90. --- joveorg/jove.c    Sat Jun 19 01:44:50 1993
  91. +++ jove4.14.10/jove.c    Sun Oct  2 12:31:17 1994
  92. @@ -1511,9 +1511,7 @@
  93.      UpdModLine = YES;
  94.      if (inIOread)
  95.          redisplay();
  96. -#ifndef    BSD_SIGS
  97.      (void) signal(SIGALRM, updmode);
  98. -#endif
  99.      if (UpdFreq != 0)
  100.          (void) alarm((unsigned) (UpdFreq - (time((time_t *)NULL) % UpdFreq)));
  101.      errno = save_errno;
  102. diff -u --recursive joveorg/select.h jove4.14.10/select.h
  103. --- joveorg/select.h    Wed May  5 22:13:56 1993
  104. +++ jove4.14.10/select.h    Sun Oct  2 12:30:58 1994
  105. @@ -9,6 +9,12 @@
  106.  # include <sys/select.h>
  107.  #endif
  108.  
  109. +#ifdef linux
  110. +#include <sys/time.h>
  111. +#include <sys/types.h>
  112. +#include <unistd.h>
  113. +#else
  114. +
  115.  #ifndef FD_SET        /* usually set in sys/types.h (AIX: sys/select.h) */
  116.  
  117.    typedef long fd_set;
  118. @@ -21,5 +27,7 @@
  119.  # define FD_CLR(fd, fdset)    (*(fdset) &= ~(1L << (fd))
  120.  # define FD_ISSET(fd, fdset)    (*(fdset) & (1L << (fd)))
  121.  # define FD_ZERO(fdset)        (*(fdset) = 0)
  122. +
  123. +#endif /* linux */
  124.  
  125.  #endif /* FD_SET */
  126.  
  127.