Skip to content

Commit 5cf293f

Browse files
committed
Merge branch '10.0' of github.com:MariaDB/server into 10.0
2 parents 74f15e2 + 955126e commit 5cf293f

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

config.h.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@
9393
#cmakedefine HAVE_SYS_TYPES_H 1
9494
#cmakedefine HAVE_SYS_UN_H 1
9595
#cmakedefine HAVE_SYS_VADVISE_H 1
96+
#cmakedefine HAVE_UCONTEXT_H 1
9697
#cmakedefine HAVE_TERM_H 1
9798
#cmakedefine HAVE_TERMBITS_H 1
9899
#cmakedefine HAVE_TERMIOS_H 1
@@ -289,7 +290,6 @@
289290
#cmakedefine HAVE_THR_YIELD 1
290291
#cmakedefine HAVE_TIME 1
291292
#cmakedefine HAVE_TIMES 1
292-
#cmakedefine HAVE_UCONTEXT 1
293293
#cmakedefine HAVE_VALLOC 1
294294
#cmakedefine HAVE_VIDATTR 1
295295
#define HAVE_VIO_READ_BUFF 1

configure.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1057,5 +1057,8 @@ CHECK_STRUCT_HAS_MEMBER("struct dirent" d_ino "dirent.h" STRUCT_DIRENT_HAS_D_IN
10571057
CHECK_STRUCT_HAS_MEMBER("struct dirent" d_namlen "dirent.h" STRUCT_DIRENT_HAS_D_NAMLEN)
10581058
SET(SPRINTF_RETURNS_INT 1)
10591059
CHECK_INCLUDE_FILE(ucontext.h HAVE_UCONTEXT_H)
1060+
IF(NOT HAVE_UCONTEXT_H)
1061+
CHECK_INCLUDE_FILE(sys/ucontext.h HAVE_UCONTEXT_H)
1062+
ENDIF()
10601063
CHECK_STRUCT_HAS_MEMBER("struct timespec" tv_sec "time.h" STRUCT_TIMESPEC_HAS_TV_SEC)
10611064
CHECK_STRUCT_HAS_MEMBER("struct timespec" tv_nsec "time.h" STRUCT_TIMESPEC_HAS_TV_NSEC)

include/my_context.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
#define MY_CONTEXT_USE_X86_64_GCC_ASM
3232
#elif defined(__GNUC__) && __GNUC__ >= 3 && defined(__i386__)
3333
#define MY_CONTEXT_USE_I386_GCC_ASM
34-
#elif defined(HAVE_UCONTEXT)
34+
#elif defined(HAVE_UCONTEXT_H)
3535
#define MY_CONTEXT_USE_UCONTEXT
3636
#else
3737
#define MY_CONTEXT_DISABLE

sql-common/client.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4338,6 +4338,7 @@ mysql_options(MYSQL *mysql,enum mysql_option option, const void *arg)
43384338
stacksize= ASYNC_CONTEXT_DEFAULT_STACK_SIZE;
43394339
if (my_context_init(&ctxt->async_context, stacksize))
43404340
{
4341+
set_mysql_error(mysql, CR_OUT_OF_MEMORY, unknown_sqlstate);
43414342
my_free(ctxt);
43424343
DBUG_RETURN(1);
43434344
}

0 commit comments

Comments
 (0)