Revision 5f3adef4 dclog/dclog.c

View differences:

dclog/dclog.c
44 44
#include <sys/stat.h>
45 45
#include <errno.h>
46 46
#include <fcntl.h>
47
//#include <netdb.h>
47
#include <netdb.h>
48 48
#include <stdarg.h>
49 49
#include <stdio.h>
50 50
#include <stdlib.h>
......
54 54
#ifndef WIN32
55 55
#include <sys/socket.h>
56 56
#include <netinet/in.h>
57

  
58
#else
59

  
60
static struct tm *localtime_r(const time_t *clock, struct tm *result) {
61
    struct tm *res = localtime(clock);
62
    *result = *res;
63
  return result;
64
}
65 57
#endif
66 58

  
67 59
// dclog headers
......
761 753
  
762 754
  // If the user-specified level is higher than the logging level for
763 755
  // this DCLog object, return success
764
  if (lev > dclog->lev) {
756
  if (lev > dclog->lev)
765 757
    return 1;
766
  }
767 758
  
768 759
  // If we are using the unique filename by day of the month feature,
769 760
  // DCLOG_FEAT_UNIQUE, see if the day of the month has changed

Also available in: Unified diff