apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject cvs commit: apr/file_io/unix dir.c
Date Mon, 12 Feb 2001 20:55:34 GMT
trawick     01/02/12 12:55:34

  Modified:    file_io/unix dir.c
  Log:
  OS/390 has _POSIX_PATH_MAX but not PATH_MAX (did I hear a little bird
  say "APR_PATH_MAX?")
  
  Revision  Changes    Path
  1.51      +4 -0      apr/file_io/unix/dir.c
  
  Index: dir.c
  ===================================================================
  RCS file: /home/cvs/apr/file_io/unix/dir.c,v
  retrieving revision 1.50
  retrieving revision 1.51
  diff -u -r1.50 -r1.51
  --- dir.c	2001/02/08 07:44:37	1.50
  +++ dir.c	2001/02/12 20:55:32	1.51
  @@ -154,7 +154,11 @@
       wanted &= ~(APR_FINFO_NAME);
       if (wanted)
       {
  +#if defined(PATH_MAX)
           char fspec[PATH_MAX];
  +#elif defined(_POSIX_PATH_MAX)
  +        char fspec[_POSIX_PATH_MAX];
  +#endif
           int off;
           apr_cpystrn(fspec, thedir->dirname, sizeof(fspec));
           off = strlen(fspec);
  
  
  

Mime
View raw message