diff options
author | unknown <jimw@mysql.com> | 2005-04-25 18:02:03 -0700 |
---|---|---|
committer | unknown <jimw@mysql.com> | 2005-04-25 18:02:03 -0700 |
commit | ccfcfce6dbd897928954adbe74e474e8c1ac3e44 (patch) | |
tree | fdecbdeab11a89911350e47d2e36f4b984d21161 /sql/mysqld.cc | |
parent | 20cf8f82eefbc4db26ec50aef4f602c991811397 (diff) | |
download | mariadb-git-ccfcfce6dbd897928954adbe74e474e8c1ac3e44.tar.gz |
Fix compile issues in Intel C/C++ compiler (Bug #9063)
acinclude.m4:
Use AC_LANG_PUSH/POP instead of _SAVE/RESTORE
Add test to get type of 'struct rlimit'
Switch order of including stdlib.h and declaration being tested to
match how it will be used in regular code.
configure.in:
Call MYSQL_TYPE_STRUCT_RLIMIT macro
sql/mysqld.cc:
Use STRUCT_RLIMIT for getting type of struct rlimit.
Diffstat (limited to 'sql/mysqld.cc')
-rw-r--r-- | sql/mysqld.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/mysqld.cc b/sql/mysqld.cc index 056c2a7ad7f..43bed35621b 100644 --- a/sql/mysqld.cc +++ b/sql/mysqld.cc @@ -2000,7 +2000,7 @@ static void init_signals(void) if (test_flags & TEST_CORE_ON_SIGNAL) { /* Change limits so that we will get a core file */ - struct rlimit rl; + STRUCT_RLIMIT rl; rl.rlim_cur = rl.rlim_max = RLIM_INFINITY; if (setrlimit(RLIMIT_CORE, &rl) && global_system_variables.log_warnings) sql_print_warning("setrlimit could not change the size of core files to 'infinity'; We may not be able to generate a core file on signals"); |