Add support for non-glibc systems
MaxScale can now be built on systems that use an alternative libc implementation e.g. musl.
This commit is contained in:
@ -2020,9 +2020,9 @@ bool blr_send_event(blr_thread_role_t role,
|
||||
slave->serverid,
|
||||
binlog_name,
|
||||
binlog_pos,
|
||||
thread_self(),
|
||||
(uint64_t)thread_self(),
|
||||
ROLETOSTR(role),
|
||||
slave->lsi_sender_tid,
|
||||
(uint64_t)slave->lsi_sender_tid,
|
||||
ROLETOSTR(slave->lsi_sender_role),
|
||||
gwbuf_length(slave->dcb->writeq), slave->dcb,
|
||||
slave->router->stats.n_binlogs);
|
||||
|
@ -56,6 +56,7 @@ static void printVersion(const char *progname);
|
||||
static void printUsage(const char *progname);
|
||||
static int set_encryption_options(ROUTER_INSTANCE *inst, char *key_file, char *aes_algo);
|
||||
|
||||
#ifdef HAVE_GLIBC
|
||||
static struct option long_options[] =
|
||||
{
|
||||
{"debug", no_argument, 0, 'd'},
|
||||
@ -70,7 +71,7 @@ static struct option long_options[] =
|
||||
{"help", no_argument, 0, '?'},
|
||||
{0, 0, 0, 0}
|
||||
};
|
||||
|
||||
#endif
|
||||
char *binlog_check_version = "2.2.1";
|
||||
|
||||
int
|
||||
@ -90,7 +91,11 @@ int main(int argc, char **argv)
|
||||
char c;
|
||||
BINLOG_FILE_FIX binlog_file = {0, false, false};
|
||||
|
||||
#ifdef HAVE_GLIBC
|
||||
while ((c = getopt_long(argc, argv, "dVfMHK:A:R:T:?", long_options, &option_index)) >= 0)
|
||||
#else
|
||||
while ((c = getopt(argc, argv, "dVfMHK:A:R:T:?")) >= 0)
|
||||
#endif
|
||||
{
|
||||
switch (c)
|
||||
{
|
||||
|
Reference in New Issue
Block a user