Print this page
make: unifdef for other OSes (undefined)

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/make/lib/mksh/mksh.cc
          +++ new/usr/src/cmd/make/lib/mksh/mksh.cc
↓ open down ↓ 36 lines elided ↑ open up ↑
  37   37  #       include <avo/util.h>
  38   38  #endif
  39   39  
  40   40  #include <mksh/dosys.h>         /* redirect_io() */
  41   41  #include <mksh/misc.h>          /* retmem() */
  42   42  #include <mksh/mksh.h>
  43   43  #include <mksdmsi18n/mksdmsi18n.h>
  44   44  #include <errno.h>
  45   45  #include <signal.h>
  46   46  
  47      -#ifdef HP_UX
  48      -        extern void (*sigset(int, void (*)(__harg)))(__harg);
  49      -#endif
  50   47  
  51   48  /*
  52   49   * Workaround for NFS bug. Sometimes, when running 'chdir' on a remote
  53   50   * dmake server, it fails with "Stale NFS file handle" error.
  54   51   * The second attempt seems to work.
  55   52   */
  56   53  int
  57   54  my_chdir(char * dir) {
  58   55          int res = chdir(dir);
  59   56          if (res != 0 && (errno == ESTALE || errno == EAGAIN)) {
↓ open down ↓ 223 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX