List:Commits« Previous MessageNext Message »
From:Daniel Fischer Date:March 9 2007 10:17am
Subject:bk commit into 5.0 tree (df:1.2436) BUG#25601
View as plain text  
Below is the list of changes that have just been committed into a local
5.0 repository of df. When df does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html

ChangeSet@stripped, 2007-03-09 10:17:21+01:00, df@stripped +1 -0
  BUG#25601 Missing m4 macro MYSQL_CHECK_TIME_T

  config/ac-macros/misc.m4@stripped, 2007-03-09 10:17:18+01:00, df@stripped +24
-0
    BUG#25601 MYSQL_CHECK_TIME_T macro is missing in 5.0 and upward, likely incorrectly
merged up from 4.1. This patch is a verbatim copy from 4.1's acinclude.m4 (except for
typos in comment).

# This is a BitKeeper patch.  What follows are the unified diffs for the
# set of deltas contained in the patch.  The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User:	df
# Host:	pippilotta.erinye.com
# Root:	/shared/home/df/mysql/build/mysql-5.0-build-work-25601

--- 1.12/config/ac-macros/misc.m4	2006-04-13 15:06:48 +02:00
+++ 1.13/config/ac-macros/misc.m4	2007-03-09 10:17:18 +01:00
@@ -790,3 +790,27 @@
 AC_SUBST(AR)
 AC_SUBST(ARFLAGS)
 ])
+
+dnl
+dnl  Macro to check time_t range: according to C standard
+dnl  array index must be greater than 0 => if time_t is signed,
+dnl  the code in the macros below won't compile.
+dnl
+
+AC_DEFUN([MYSQL_CHECK_TIME_T],[
+    AC_MSG_CHECKING(if time_t is unsigned)
+    AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
+        [[
+#include <time.h>
+        ]],
+        [[
+        int array[(((time_t)-1) > 0) ? 1 : -1];
+        ]] )
+    ], [
+    AC_DEFINE([TIME_T_UNSIGNED], 1, [Define to 1 if time_t is unsigned])
+    AC_MSG_RESULT(yes)
+    ],
+    [AC_MSG_RESULT(no)]
+    )
+])
+
Thread
bk commit into 5.0 tree (df:1.2436) BUG#25601Daniel Fischer9 Mar