Next 3.3; PATH_MAX not defined in libchill/basicio.c

James McKelvey mckelvey@fafnir.com
Thu Dec 23 19:04:00 GMT 1999


GCC 2.95.2

Next Cube running NextSTEP 4.2, 3.3 Developer

gcc-2.95.2/libchill/basicio.c does not reliably set PATH_MAX

*** basicio.c.orig      Sun Dec  5 23:12:32 1999
--- basicio.c   Sun Dec  5 23:16:08 1999
***************
*** 39,51 ****
  #include "fileio.h"

  #ifndef PATH_MAX
! #ifdef _POSIX_PATH_MAX
! #define PATH_MAX _POSIX_PATH_MAX
! #else
! #ifdef MAXPATHLEN
! #define PATH_MAX MAXPATHLEN
! #endif
! #endif
  #endif

  static
--- 39,53 ----
  #include "fileio.h"

  #ifndef PATH_MAX
! #   ifdef _POSIX_PATH_MAX
! #       define PATH_MAX _POSIX_PATH_MAX
! #   else
! #       ifdef MAXPATHLEN
! #           define PATH_MAX MAXPATHLEN
! #       else
! #           define PATH_MAX 1024
! #       endif
! #   endif
  #endif

  static

---
Where diesel guitars from faraway bars, blast out the
best songs from our holy wars. Coyote carnival catches
on fire, all the cops in the world pick us up on radar.
Jim McKelvey  mckelvey@fafnir.com


More information about the Gcc-bugs mailing list