apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@apache.org
Subject cvs commit: apr/file_io/unix mktemp.c
Date Tue, 08 Jan 2002 06:33:00 GMT
rbb         02/01/07 22:33:00

  Modified:    file_io/unix mktemp.c
  Log:
  Fix a compile break that I just committed.  Having multiple OSes is a good
  thing.
  
  Revision  Changes    Path
  1.18      +3 -1      apr/file_io/unix/mktemp.c
  
  Index: mktemp.c
  ===================================================================
  RCS file: /home/cvs/apr/file_io/unix/mktemp.c,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- mktemp.c	8 Jan 2002 06:26:09 -0000	1.17
  +++ mktemp.c	8 Jan 2002 06:33:00 -0000	1.18
  @@ -203,11 +203,13 @@
   
   APR_DECLARE(apr_status_t) apr_file_mktemp(apr_file_t **fp, char *template, apr_int32_t
flags, apr_pool_t *p)
   {
  +#ifdef HAVE_MKSTEMP
  +    int fd;
  +#endif
       flags = (!flags) ? APR_READ | APR_WRITE | APR_EXCL | APR_DELONCLOSE : flags;
   #ifndef HAVE_MKSTEMP
       return gettemp(template, fp, flags, p);
   #else
  -    int fd;
   
       fd = mkstemp(template);
       if (fd == -1) {
  
  
  

Mime
View raw message