mirror of
https://github.com/MariaDB/server.git
synced 2026-05-16 20:07:13 +02:00
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)
This commit is contained in:
parent
e4b15e92b4
commit
8b50ce72f9
1 changed files with 2 additions and 2 deletions
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue