httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@locus.apache.org
Subject cvs commit: apache-1.3/src/support rotatelogs.c
Date Tue, 21 Nov 2000 13:42:21 GMT
wrowe       00/11/21 05:42:18

  Modified:    src/support rotatelogs.c
  Log:
    Fix compile break on Win32 for the last truncate logs patch.
  
  Revision  Changes    Path
  1.15      +8 -0      apache-1.3/src/support/rotatelogs.c
  
  Index: rotatelogs.c
  ===================================================================
  RCS file: /home/cvs/apache-1.3/src/support/rotatelogs.c,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- rotatelogs.c	2000/11/18 21:57:15	1.14
  +++ rotatelogs.c	2000/11/21 13:42:11	1.15
  @@ -85,7 +85,11 @@
                               "new log file. %10d messages lost.\n",
                               nMessCount); 
                       nWrite = strlen(errbuf);
  +#ifdef WIN32
  +                    chsize(nLogFD, 0);
  +#else
                       ftruncate(nLogFD, 0);
  +#endif
                       write(nLogFD, errbuf, nWrite);
                   }
               }
  @@ -104,7 +108,11 @@
                       "%10d messages lost.\n",
                       nMessCount);
               nWrite = strlen(errbuf);
  +#ifdef WIN32
  +            chsize(nLogFD, 0);
  +#else
               ftruncate(nLogFD, 0);
  +#endif
               write (nLogFD, errbuf, nWrite);
           } 
           else {
  
  
  

Mime
View raw message