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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
e720b5a6
Commit
e720b5a6
authored
Aug 28, 2002
by
monty@hundin.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Portability fixes for windows
parent
80d8898f
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
4 deletions
+6
-4
include/config-win.h
include/config-win.h
+1
-0
include/my_global.h
include/my_global.h
+1
-1
sql/mysqld.cc
sql/mysqld.cc
+1
-1
sql/set_var.cc
sql/set_var.cc
+2
-1
sql/sql_yacc.yy
sql/sql_yacc.yy
+1
-1
No files found.
include/config-win.h
View file @
e720b5a6
...
...
@@ -259,6 +259,7 @@ inline double ulonglong2double(ulonglong value)
#define HAVE_ISNAN
#define HAVE_FINITE
#define HAVE_ISAM
/* We want to have support for ISAM in 4.0 */
#define SPRINTF_RETURNS_INT
#ifdef NOT_USED
#define HAVE_SNPRINTF
/* Gave link error */
...
...
include/my_global.h
View file @
e720b5a6
...
...
@@ -1016,7 +1016,7 @@ typedef union {
#ifdef SPRINTF_RETURNS_PTR
#define my_sprintf(buff,args) ((int)(sprintf args - buff))
#else
#define my_sprintf(buff,args)
sprintf args,strlen(buff
)
#define my_sprintf(buff,args)
((ulong) sprintf args, (ulong) strlen(buff)
)
#endif
#endif
...
...
sql/mysqld.cc
View file @
e720b5a6
...
...
@@ -3339,7 +3339,7 @@ struct my_option my_long_options[] =
#ifdef USE_SYMDIR
{
"use-symbolic-links"
,
's'
,
"Enable symbolic link support"
,
(
gptr
*
)
&
my_use_symdir
,
(
gptr
*
)
&
my_use_symdir
,
0
,
GET_BOOL
,
NO_ARG
,
USE
_PURIFY
(
0
,
1
),
0
,
0
,
0
,
0
,
0
},
IF
_PURIFY
(
0
,
1
),
0
,
0
,
0
,
0
,
0
},
#endif
{
"user"
,
'u'
,
"Run mysqld daemon as user"
,
(
gptr
*
)
&
mysqld_user
,
(
gptr
*
)
&
mysqld_user
,
0
,
GET_STR
,
REQUIRED_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
...
...
sql/set_var.cc
View file @
e720b5a6
...
...
@@ -1208,7 +1208,8 @@ void set_var_free()
sys_var
*
find_sys_var
(
const
char
*
str
,
uint
length
)
{
sys_var
*
var
=
(
sys_var
*
)
hash_search
(
&
system_variable_hash
,
str
,
sys_var
*
var
=
(
sys_var
*
)
hash_search
(
&
system_variable_hash
,
(
byte
*
)
str
,
length
?
length
:
strlen
(
str
));
if
(
!
var
)
...
...
sql/sql_yacc.yy
View file @
e720b5a6
...
...
@@ -3287,7 +3287,7 @@ option_value:
LEX *lex=Lex;
lex->var_list.push_back(new set_var(lex->option_type,
find_sys_var("tx_isolation"),
new Item_int((int) $4)));
new Item_int((int
32
) $4)));
}
| CHAR_SYM SET opt_equal set_expr_or_default
{
...
...
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