Skip to content

Commit 1993780

Browse files
vuvovasvoj
authored andcommitted
fix build on sol10-64
1 parent 7454f1c commit 1993780

File tree

4 files changed

+13
-15
lines changed

4 files changed

+13
-15
lines changed

BUILD/compile-solaris-amd64

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
export LDFLAGS='-m64 -lmtmalloc -R/usr/sfw/lib/64'
44
export CFLAGS='-mtune=i386 -D__sun -m64 -mtune=athlon64'
55
export CXXFLAGS='-mtune=i386 -D__sun -m64 -mtune=athlon64'
6-
cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DWITH_EXTRA_CHARSETS=complex -DWITH_READLINE=ON -DWITH_SSL=bundled -DWITH_MAX=ON -DWITH_EMBEDDED_SERVER=ON
6+
cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DWITH_EXTRA_CHARSETS=complex -DWITH_READLINE=ON -DWITH_SSL=bundled -DWITH_MAX=ON -DWITH_EMBEDDED_SERVER=ON -DWITH_ZLIB=bundled
77
gmake -j6 VERBOSE=1
88

mysys/my_addr_resolve.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ const char *my_addr_resolve_init()
135135

136136
#if defined(HAVE_LINK_H) && defined(HAVE_DLOPEN)
137137
#include <link.h>
138-
static ElfW(Addr) offset= 0;
138+
static ptrdiff_t offset= 0;
139139
#else
140140
#define offset 0
141141
#endif

wsrep/wsrep_api.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@
4848
#define WSREP_H
4949

5050
#include <stdint.h>
51-
#include <stdbool.h>
5251
#include <stdlib.h>
5352
#include <unistd.h>
5453
#include <time.h>

wsrep/wsrep_dummy.c

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
#include "wsrep_api.h"
2020

2121
#include <errno.h>
22-
#include <stdbool.h>
2322
#include <string.h>
2423

2524
/*! Dummy backend context. */
@@ -164,7 +163,7 @@ static wsrep_status_t dummy_append_key(
164163
const wsrep_key_t* key __attribute__((unused)),
165164
const size_t key_num __attribute__((unused)),
166165
const wsrep_key_type_t key_type __attribute__((unused)),
167-
const bool copy __attribute__((unused)))
166+
const wsrep_bool_t copy __attribute__((unused)))
168167
{
169168
WSREP_DBUG_ENTER(w);
170169
return WSREP_OK;
@@ -176,7 +175,7 @@ static wsrep_status_t dummy_append_data(
176175
const struct wsrep_buf* data __attribute__((unused)),
177176
const size_t count __attribute__((unused)),
178177
const wsrep_data_type_t type __attribute__((unused)),
179-
const bool copy __attribute__((unused)))
178+
const wsrep_bool_t copy __attribute__((unused)))
180179
{
181180
WSREP_DBUG_ENTER(w);
182181
return WSREP_OK;
@@ -319,10 +318,10 @@ static wsrep_status_t dummy_resync (wsrep_t* w)
319318
}
320319

321320
static wsrep_status_t dummy_lock (wsrep_t* w,
322-
const char* s __attribute__((unused)),
323-
bool r __attribute__((unused)),
324-
uint64_t o __attribute__((unused)),
325-
int64_t t __attribute__((unused)))
321+
const char* s __attribute__((unused)),
322+
wsrep_bool_t r __attribute__((unused)),
323+
uint64_t o __attribute__((unused)),
324+
int64_t t __attribute__((unused)))
326325
{
327326
WSREP_DBUG_ENTER(w);
328327
return WSREP_NOT_IMPLEMENTED;
@@ -336,13 +335,13 @@ static wsrep_status_t dummy_unlock (wsrep_t* w,
336335
return WSREP_OK;
337336
}
338337

339-
static bool dummy_is_locked (wsrep_t* w,
340-
const char* s __attribute__((unused)),
341-
uint64_t* o __attribute__((unused)),
342-
wsrep_uuid_t* t __attribute__((unused)))
338+
static wsrep_bool_t dummy_is_locked (wsrep_t* w,
339+
const char* s __attribute__((unused)),
340+
uint64_t* o __attribute__((unused)),
341+
wsrep_uuid_t* t __attribute__((unused)))
343342
{
344343
WSREP_DBUG_ENTER(w);
345-
return false;
344+
return 0;
346345
}
347346

348347
static wsrep_t dummy_iface = {

0 commit comments

Comments
 (0)