Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
93ff028f
Commit
93ff028f
authored
Apr 25, 2005
by
jimw@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix compile issues in Intel C/C++ compiler (Bug #9063)
parent
71c7c0d3
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
37 additions
and
6 deletions
+37
-6
acinclude.m4
acinclude.m4
+34
-5
configure.in
configure.in
+2
-0
sql/mysqld.cc
sql/mysqld.cc
+1
-1
No files found.
acinclude.m4
View file @
93ff028f
...
@@ -97,10 +97,10 @@ undefine([AC_CV_NAME])dnl
...
@@ -97,10 +97,10 @@ undefine([AC_CV_NAME])dnl
AC_DEFUN([MYSQL_TYPE_ACCEPT],
AC_DEFUN([MYSQL_TYPE_ACCEPT],
[ac_save_CXXFLAGS="$CXXFLAGS"
[ac_save_CXXFLAGS="$CXXFLAGS"
AC_CACHE_CHECK([base type of last arg to accept], mysql_cv_btype_last_arg_accept,
AC_CACHE_CHECK([base type of last arg to accept], mysql_cv_btype_last_arg_accept,
AC_LANG_SAVE
AC_LANG_PUSH(C++)
AC_LANG_CPLUSPLUS
if test "$ac_cv_prog_gxx" = "yes"
if test "$ac_cv_prog_gxx" = "yes"
then
then
# Add -Werror, remove -fbranch-probabilities (Bug #268)
CXXFLAGS=`echo $CXXFLAGS -Werror | sed 's/-fbranch-probabilities//'`
CXXFLAGS=`echo $CXXFLAGS -Werror | sed 's/-fbranch-probabilities//'`
fi
fi
mysql_cv_btype_last_arg_accept=none
mysql_cv_btype_last_arg_accept=none
...
@@ -127,7 +127,7 @@ fi
...
@@ -127,7 +127,7 @@ fi
if test "$mysql_cv_btype_last_arg_accept" = "none"; then
if test "$mysql_cv_btype_last_arg_accept" = "none"; then
mysql_cv_btype_last_arg_accept=int
mysql_cv_btype_last_arg_accept=int
fi)
fi)
AC_LANG_
RESTORE
AC_LANG_
POP(C++)
AC_DEFINE_UNQUOTED([SOCKET_SIZE_TYPE], [$mysql_cv_btype_last_arg_accept],
AC_DEFINE_UNQUOTED([SOCKET_SIZE_TYPE], [$mysql_cv_btype_last_arg_accept],
[The base type of the last arg to accept])
[The base type of the last arg to accept])
CXXFLAGS="$ac_save_CXXFLAGS"
CXXFLAGS="$ac_save_CXXFLAGS"
...
@@ -153,6 +153,35 @@ then
...
@@ -153,6 +153,35 @@ then
fi
fi
])
])
#---START: Figure out whether to use 'struct rlimit' or 'struct rlimit64'
AC_DEFUN([MYSQL_TYPE_STRUCT_RLIMIT],
[ac_save_CXXFLAGS="$CXXFLAGS"
AC_CACHE_CHECK([struct type to use with setrlimit], mysql_cv_btype_struct_rlimit,
AC_LANG_PUSH(C++)
if test "$ac_cv_prog_gxx" = "yes"
then
# Add -Werror, remove -fbranch-probabilities (Bug #268)
CXXFLAGS=`echo $CXXFLAGS -Werror | sed 's/-fbranch-probabilities//'`
fi
mysql_cv_btype_struct_rlimit=none
[AC_TRY_COMPILE([#if defined(inline)
#undef inline
#endif
#include <stdlib.h>
#include <sys/resources.h>
],
[struct rlimit64 rl; setrlimit(RLIMIT_CORE, &rl);],
mysql_cv_btype_struct_rlimit="struct rlimit64")]
if test "$mysql_cv_btype_struct_rlimit" = "none"; then
mysql_cv_btype_struct_rlimit="struct rlimit"
fi)
AC_LANG_POP(C++)
AC_DEFINE_UNQUOTED([STRUCT_RLIMIT], [$mysql_cv_btype_struct_rlimit],
[The struct rlimit type to use with setrlimit])
CXXFLAGS="$ac_save_CXXFLAGS"
])
#---END:
AC_DEFUN([MYSQL_TIMESPEC_TS],
AC_DEFUN([MYSQL_TIMESPEC_TS],
[AC_CACHE_CHECK([if struct timespec has a ts_sec member], mysql_cv_timespec_ts,
[AC_CACHE_CHECK([if struct timespec has a ts_sec member], mysql_cv_timespec_ts,
[AC_TRY_COMPILE([#include <pthread.h>
[AC_TRY_COMPILE([#include <pthread.h>
...
@@ -1940,8 +1969,8 @@ m4_define([_AC_PROG_CXX_EXIT_DECLARATION],
...
@@ -1940,8 +1969,8 @@ m4_define([_AC_PROG_CXX_EXIT_DECLARATION],
'void exit (int);' \
'void exit (int);' \
'#include <stdlib.h>'
'#include <stdlib.h>'
do
do
_AC_COMPILE_IFELSE([AC_LANG_PROGRAM([
@%:@include <stdlib.h>
_AC_COMPILE_IFELSE([AC_LANG_PROGRAM([
$ac_declaration
$ac_declaration
],
@%:@include <stdlib.h>
],
[exit (42);])],
[exit (42);])],
[],
[],
[continue])
[continue])
...
...
configure.in
View file @
93ff028f
...
@@ -1795,6 +1795,8 @@ AC_C_BIGENDIAN
...
@@ -1795,6 +1795,8 @@ AC_C_BIGENDIAN
MYSQL_TYPE_ACCEPT
MYSQL_TYPE_ACCEPT
#---END:
#---END:
# Figure out what type of struct rlimit to use with setrlimit
MYSQL_TYPE_STRUCT_RLIMIT
# Find where the stack goes
# Find where the stack goes
MYSQL_STACK_DIRECTION
MYSQL_STACK_DIRECTION
# We want to skip alloca on irix unconditionally. It may work on some version..
# We want to skip alloca on irix unconditionally. It may work on some version..
...
...
sql/mysqld.cc
View file @
93ff028f
...
@@ -2000,7 +2000,7 @@ static void init_signals(void)
...
@@ -2000,7 +2000,7 @@ static void init_signals(void)
if
(
test_flags
&
TEST_CORE_ON_SIGNAL
)
if
(
test_flags
&
TEST_CORE_ON_SIGNAL
)
{
{
/* Change limits so that we will get a core file */
/* Change limits so that we will get a core file */
struct
rlimit
rl
;
STRUCT_RLIMIT
rl
;
rl
.
rlim_cur
=
rl
.
rlim_max
=
RLIM_INFINITY
;
rl
.
rlim_cur
=
rl
.
rlim_max
=
RLIM_INFINITY
;
if
(
setrlimit
(
RLIMIT_CORE
,
&
rl
)
&&
global_system_variables
.
log_warnings
)
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"
);
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"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment