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
eedca52b
Commit
eedca52b
authored
May 26, 2003
by
monty@narttu.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for 64 bit machines (To remove warnings on Itanium)
parent
1b14aa0d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
include/my_global.h
include/my_global.h
+5
-0
mysys/thr_alarm.c
mysys/thr_alarm.c
+1
-0
No files found.
include/my_global.h
View file @
eedca52b
...
@@ -634,7 +634,12 @@ extern double my_atof(const char*);
...
@@ -634,7 +634,12 @@ extern double my_atof(const char*);
Max size that must be added to a so that we know Size to make
Max size that must be added to a so that we know Size to make
adressable obj.
adressable obj.
*/
*/
#if SIZEOF_CHARP == 4
typedef
long
my_ptrdiff_t
;
typedef
long
my_ptrdiff_t
;
#else
typedef
long
long
my_ptrdiff_t
;
#endif
#define MY_ALIGN(A,L) (((A) + (L) - 1) & ~((L) - 1))
#define MY_ALIGN(A,L) (((A) + (L) - 1) & ~((L) - 1))
#define ALIGN_SIZE(A) MY_ALIGN((A),sizeof(double))
#define ALIGN_SIZE(A) MY_ALIGN((A),sizeof(double))
/* Size to make adressable obj. */
/* Size to make adressable obj. */
...
...
mysys/thr_alarm.c
View file @
eedca52b
...
@@ -169,6 +169,7 @@ bool thr_alarm(thr_alarm_t *alrm, uint sec, ALARM *alarm_data)
...
@@ -169,6 +169,7 @@ bool thr_alarm(thr_alarm_t *alrm, uint sec, ALARM *alarm_data)
if
(
!
(
alarm_data
=
(
ALARM
*
)
my_malloc
(
sizeof
(
ALARM
),
MYF
(
MY_WME
))))
if
(
!
(
alarm_data
=
(
ALARM
*
)
my_malloc
(
sizeof
(
ALARM
),
MYF
(
MY_WME
))))
{
{
DBUG_PRINT
(
"info"
,
(
"failed my_malloc()"
));
DBUG_PRINT
(
"info"
,
(
"failed my_malloc()"
));
*
alrm
=
0
;
/* No alarm */
pthread_mutex_unlock
(
&
LOCK_alarm
);
pthread_mutex_unlock
(
&
LOCK_alarm
);
pthread_sigmask
(
SIG_SETMASK
,
&
old_mask
,
NULL
);
pthread_sigmask
(
SIG_SETMASK
,
&
old_mask
,
NULL
);
DBUG_RETURN
(
1
);
DBUG_RETURN
(
1
);
...
...
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