1
0
Fork 0

Adding upstream version 1.14.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-05-22 12:57:21 +02:00
parent 515eb29eee
commit 9ae445a706
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
1041 changed files with 6076 additions and 1170 deletions

View file

@ -8,7 +8,7 @@
project(
'libnvme', ['c'],
meson_version: '>= 0.62.0',
version: '1.13',
version: '1.14',
license: 'LGPL-2.1-or-later',
default_options: [
'c_std=gnu99',
@ -21,6 +21,7 @@ project(
)
vstr = meson.project_version().split('-rc')[0]
vstr = vstr.split('.dev')[0]
vid = vstr.split('.')
library_version = '.'.join([vid[0], vid[1]])
if vid.length() == 3
@ -215,9 +216,10 @@ conf.set10(
description: 'Is linux/mctp.h include-able?'
)
conf.set(
'HAVE_NETDB',
cc.links(
is_static = get_option('default_library') == 'static'
have_netdb = false
if not is_static
have_netdb = cc.links(
'''#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
@ -227,9 +229,16 @@ conf.set(
}
''',
name: 'netdb',
),
)
endif
conf.set(
'HAVE_NETDB',
have_netdb,
description: 'Is network address and service translation available'
)
threads_dep = dependency('threads', required: true)
dl_dep = dependency('dl', required: false)
conf.set(
'HAVE_LIBC_DLSYM',
@ -243,20 +252,6 @@ else
conf.set('fallthrough', 'do {} while (0) /* fallthrough */')
endif
if cc.has_function('TEMP_FAILURE_RETRY', prefix : '#include <errno.h>')
conf.set('TFR', 'TEMP_FAILURE_RETRY')
else
conf.set('TFR(exp)', ''' \
({ \
long int __result = 0; \
do { \
__result = (long int)(exp); \
} while ((__result == -1) && (errno == EINTR)); \
__result; \
})
''')
endif
################################################################################
substs = configuration_data()
substs.set('NAME', meson.project_name())