mirror of
https://github.com/rkd77/elinks.git
synced 2024-11-04 08:17:17 -05:00
[smb] Added smb to meson
This commit is contained in:
parent
89f99a0667
commit
2f44f512fe
@ -328,6 +328,11 @@ if conf_data.get('CONFIG_FSP')
|
|||||||
deps += fspdeps
|
deps += fspdeps
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if conf_data.get('CONFIG_SMB')
|
||||||
|
smbdeps = dependency('smbclient', static: st)
|
||||||
|
deps += smbdeps
|
||||||
|
endif
|
||||||
|
|
||||||
dep_atomic = dependency('', required: false)
|
dep_atomic = dependency('', required: false)
|
||||||
|
|
||||||
if not compiler.links('''#include <stdint.h>
|
if not compiler.links('''#include <stdint.h>
|
||||||
|
@ -5,9 +5,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#ifdef HAVE_LIBSMBCLIENT_H
|
|
||||||
#include <libsmbclient.h>
|
#include <libsmbclient.h>
|
||||||
#endif
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@ -38,13 +36,22 @@
|
|||||||
#include "util/memory.h"
|
#include "util/memory.h"
|
||||||
#include "util/string.h"
|
#include "util/string.h"
|
||||||
|
|
||||||
|
static char elsmbversion[32];
|
||||||
|
|
||||||
|
static void
|
||||||
|
init_smb(struct module *module)
|
||||||
|
{
|
||||||
|
snprintf(elsmbversion, 31, "SMB(%s)", smbc_version());
|
||||||
|
module->name = elsmbversion;
|
||||||
|
}
|
||||||
|
|
||||||
struct module smb_protocol_module = struct_module(
|
struct module smb_protocol_module = struct_module(
|
||||||
/* name: */ N_("SMB"),
|
/* name: */ N_("SMB"),
|
||||||
/* options: */ NULL,
|
/* options: */ NULL,
|
||||||
/* hooks: */ NULL,
|
/* hooks: */ NULL,
|
||||||
/* submodules: */ NULL,
|
/* submodules: */ NULL,
|
||||||
/* data: */ NULL,
|
/* data: */ NULL,
|
||||||
/* init: */ NULL,
|
/* init: */ init_smb,
|
||||||
/* done: */ NULL
|
/* done: */ NULL
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user