summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a677dd4)
raw | patch | inline | side by side (parent: a677dd4)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Mon, 11 Jan 2010 09:49:44 +0000 (09:49 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Mon, 11 Jan 2010 09:49:44 +0000 (09:49 +0000) |
configure.ac | patch | blob | history | |
src/rrd_restore.c | patch | blob | history |
diff --git a/configure.ac b/configure.ac
index a4e9383c8f362c4a8e6d943456a443285f78bcbf..235625c937ea7b6bf928fc1d6f3d52e32ad0f901 100644 (file)
--- a/configure.ac
+++ b/configure.ac
AC_RUN_IFELSE(
AC_LANG_PROGRAM(
[[#include <time.h>]],
- [[if (sizeof(time_t) != 32) return 1; ]]
+ [[if (sizeof(time_t) != 4) return 1; ]]
),
[ AC_MSG_RESULT([time_t is 32 bit])
AC_DEFINE([TIME_T_IS_32BIT])
[ AC_RUN_IFELSE(
AC_LANG_PROGRAM(
[[#include <time.h>]],
- [[if (sizeof(time_t) != 64) return 1; ]]
+ [[if (sizeof(time_t) != 8) return 1; ]]
),
[
AC_MSG_RESULT([time_t is 64 bit])
diff --git a/src/rrd_restore.c b/src/rrd_restore.c
index 8cde6f1fbd54aff8c4761626c3f043ba021195f0..e1de2870181559da9dc481d1420d588b2293a853 100644 (file)
--- a/src/rrd_restore.c
+++ b/src/rrd_restore.c
#ifdef TIME_T_IS_64BIT
temp = strtoll((char *)text,NULL, 0);
#else
- if (sizeof(time_t) == 32){
+ if (sizeof(time_t) == 4){
temp = strtol((char *)text,NULL, 0);
} else {
temp = strtoll((char *)text,NULL, 0);