Commit cf042620 authored by Matteo Quintiliani's avatar Matteo Quintiliani
Browse files

Added check


git-svn-id: file:///home/quintiliani/svncopy/nmxptool/trunk@959 3cd66e75-5955-46cb-a940-c26e5fc5497d
parent be6c8114
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* Istituto Nazionale di Geofisica e Vulcanologia - Italy * Istituto Nazionale di Geofisica e Vulcanologia - Italy
* quintiliani@ingv.it * quintiliani@ingv.it
* *
* $Id: nmxp_data.c,v 1.58 2008-03-24 20:18:23 mtheo Exp $ * $Id: nmxp_data.c,v 1.59 2008-03-24 20:29:28 mtheo Exp $
* *
*/ */
...@@ -35,12 +35,16 @@ UTC, call mktime() and restore the value of TZ. Something like ...@@ -35,12 +35,16 @@ UTC, call mktime() and restore the value of TZ. Something like
time_t my_timegm (struct tm *tm) { time_t my_timegm (struct tm *tm) {
time_t ret; time_t ret;
#ifndef HAVE_SETENV #ifndef HAVE_SETENV
#ifndef HAVE_UNDERSCORE_TIMEZONE
#warning Computation of packet latencies could be wrong if local time is not equal to UTC. #warning Computation of packet latencies could be wrong if local time is not equal to UTC.
static int first_time = 1; static int first_time = 1;
if(first_time) { if(first_time) {
first_time = 0; first_time = 0;
nmxp_log(NMXP_LOG_WARN, NMXP_LOG_D_ANY, "Computation of packet latencies could be wrong if local time is not equal to UTC.\n"); nmxp_log(NMXP_LOG_WARN, NMXP_LOG_D_ANY, "Computation of packet latencies could be wrong if local time is not equal to UTC.\n");
} }
#endif
#else #else
char *tz; char *tz;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment