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
d80b8442
Commit
d80b8442
authored
Feb 07, 2016
by
Monty
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes needed to compile with musl C library
Patch originally by Codarren Velvindron
parent
07b8aefe
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
18 additions
and
9 deletions
+18
-9
configure.cmake
configure.cmake
+1
-0
include/my_net.h
include/my_net.h
+4
-2
libmysql/libmysql.c
libmysql/libmysql.c
+4
-2
storage/mroonga/vendor/groonga/lib/com.c
storage/mroonga/vendor/groonga/lib/com.c
+2
-2
storage/mroonga/vendor/groonga/lib/grn_com.h
storage/mroonga/vendor/groonga/lib/grn_com.h
+5
-1
storage/tokudb/PerconaFT/cmake_modules/TokuFeatureDetection.cmake
...tokudb/PerconaFT/cmake_modules/TokuFeatureDetection.cmake
+1
-1
strings/my_vsnprintf.c
strings/my_vsnprintf.c
+1
-1
No files found.
configure.cmake
View file @
d80b8442
...
...
@@ -199,6 +199,7 @@ CHECK_INCLUDE_FILES (netinet/in.h HAVE_NETINET_IN_H)
CHECK_INCLUDE_FILES
(
paths.h HAVE_PATHS_H
)
CHECK_INCLUDE_FILES
(
port.h HAVE_PORT_H
)
CHECK_INCLUDE_FILES
(
poll.h HAVE_POLL_H
)
CHECK_INCLUDE_FILES
(
sys/poll.h HAVE_SYS_POLL_H
)
CHECK_INCLUDE_FILES
(
pwd.h HAVE_PWD_H
)
CHECK_INCLUDE_FILES
(
sched.h HAVE_SCHED_H
)
CHECK_INCLUDE_FILES
(
select.h HAVE_SELECT_H
)
...
...
include/my_net.h
View file @
d80b8442
...
...
@@ -36,9 +36,11 @@ C_MODE_START
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
#ifdef HAVE_POLL
#if defined(HAVE_POLL_H)
#include <poll.h>
#elif defined(HAVE_SYS_POLL_H)
#include <sys/poll.h>
#endif
#endif
/* defined(HAVE_POLL_H) */
#ifdef HAVE_SYS_IOCTL_H
#include <sys/ioctl.h>
#endif
...
...
libmysql/libmysql.c
View file @
d80b8442
...
...
@@ -47,9 +47,11 @@
#include <sys/select.h>
#endif
#endif
/* !defined(__WIN__) */
#ifdef HAVE_POLL
#if defined(HAVE_POLL_H)
#include <poll.h>
#elif defined(HAVE_SYS_POLL_H)
#include <sys/poll.h>
#endif
#endif
/* defined(HAVE_POLL_H) */
#ifdef HAVE_SYS_UN_H
#include <sys/un.h>
#endif
...
...
storage/mroonga/vendor/groonga/lib/com.c
View file @
d80b8442
...
...
@@ -348,7 +348,7 @@ grn_com_event_add(grn_ctx *ctx, grn_com_event *ev, grn_sock fd, int events, grn_
struct
epoll_event
e
;
memset
(
&
e
,
0
,
sizeof
(
struct
epoll_event
));
e
.
data
.
fd
=
(
fd
);
e
.
events
=
(
__
uint32_t
)
events
;
e
.
events
=
(
uint32_t
)
events
;
if
(
epoll_ctl
(
ev
->
epfd
,
EPOLL_CTL_ADD
,
(
fd
),
&
e
)
==
-
1
)
{
SERR
(
"epoll_ctl"
);
return
ctx
->
rc
;
...
...
@@ -396,7 +396,7 @@ grn_com_event_mod(grn_ctx *ctx, grn_com_event *ev, grn_sock fd, int events, grn_
struct
epoll_event
e
;
memset
(
&
e
,
0
,
sizeof
(
struct
epoll_event
));
e
.
data
.
fd
=
(
fd
);
e
.
events
=
(
__
uint32_t
)
events
;
e
.
events
=
(
uint32_t
)
events
;
if
(
epoll_ctl
(
ev
->
epfd
,
EPOLL_CTL_MOD
,
(
fd
),
&
e
)
==
-
1
)
{
SERR
(
"epoll_ctl"
);
return
ctx
->
rc
;
...
...
storage/mroonga/vendor/groonga/lib/grn_com.h
View file @
d80b8442
...
...
@@ -83,7 +83,11 @@ GRN_API grn_com_queue_entry *grn_com_queue_deque(grn_ctx *ctx, grn_com_queue *q)
# define GRN_COM_POLLIN EVFILT_READ
# define GRN_COM_POLLOUT EVFILT_WRITE
# else
/* USE_KQUEUE */
# include <sys/poll.h>
# if defined(HAVE_POLL_H)
# include <poll.h>
# elif defined(HAVE_SYS_POLL_H)
# include <sys/poll.h>
# endif
/* defined(HAVE_POLL_H) */
# define GRN_COM_POLLIN POLLIN
# define GRN_COM_POLLOUT POLLOUT
# endif
/* USE_KQUEUE */
...
...
storage/tokudb/PerconaFT/cmake_modules/TokuFeatureDetection.cmake
View file @
d80b8442
...
...
@@ -93,7 +93,7 @@ if (NOT HAVE_BACKTRACE_WITHOUT_EXECINFO)
if
(
HAVE_BACKTRACE_WITH_EXECINFO
)
list
(
APPEND EXTRA_SYSTEM_LIBS execinfo
)
else
()
message
(
FATAL_ERROR
"Cannot find backtrace(), even with -lexecinfo."
)
message
(
WARNING
"Cannot find backtrace(), even with -lexecinfo."
)
endif
()
endif
()
...
...
strings/my_vsnprintf.c
View file @
d80b8442
...
...
@@ -831,7 +831,7 @@ void my_strerror(char *buf, size_t len, int nr)
(defined _XOPEN_SOURCE && (_XOPEN_SOURCE >= 600))) && \
! defined _GNU_SOURCE
strerror_r
(
nr
,
buf
,
len
);
/* I can build with or without GNU */
#elif defined
_GNU_SOURCE
#elif defined
(__GLIBC__) && defined (_GNU_SOURCE)
char
*
r
=
strerror_r
(
nr
,
buf
,
len
);
if
(
r
!=
buf
)
/* Want to help, GNU? */
strmake
(
buf
,
r
,
len
-
1
);
/* Then don't. */
...
...
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