summaryrefslogtreecommitdiff
path: root/configure.cmake
diff options
context:
space:
mode:
authorTor Didriksen <tor.didriksen@oracle.com>2013-03-11 16:46:11 +0100
committerTor Didriksen <tor.didriksen@oracle.com>2013-03-11 16:46:11 +0100
commit8b50ce72f94ab87ebd3334030780769850dd8840 (patch)
treed24875d576f6944a7f5ed3438401c53701e8b9c2 /configure.cmake
parente4b15e92b4f2259645a3201e245b00779206b86f (diff)
downloadmariadb-git-8b50ce72f94ab87ebd3334030780769850dd8840.tar.gz
Bug#11766815 INVALID SYSTEM CHECK TIME_T_UNSIGNED
The check for unsigned time_t failed, on all platforms, due to missing #include. from CMakeFiles/CMakeError.log with this patch: error: size of array array is negative without this patch: error: time_t undeclared (first use in this function)
Diffstat (limited to 'configure.cmake')
-rw-r--r--configure.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure.cmake b/configure.cmake
index f79620e0afd..3474f12f1e1 100644
--- a/configure.cmake
+++ b/configure.cmake
@@ -1,5 +1,4 @@
-
-# Copyright (c) 2009, 2012, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -603,6 +602,7 @@ ENDIF()
# check whether time_t is unsigned
CHECK_C_SOURCE_COMPILES("
+#include <time.h>
int main()
{
int array[(((time_t)-1) > 0) ? 1 : -1];