mirror of
https://gitlab.freedesktop.org/libbsd/libbsd.git
synced 2025-10-13 22:50:20 +02:00
build: Install err.h if either of the err or errc modules are built
Both modules expose their functions in err.h, so we need to install it whenever any of them is being built. Reported-by: Alejandro Colomar <alx@kernel.org>
This commit is contained in:
@@ -357,6 +357,11 @@ AS_IF([test "$abi_name_from_id" = "yes" || test "$abi_id_from_name" = "yes"], [
|
|||||||
], [
|
], [
|
||||||
abi_pwcache=no
|
abi_pwcache=no
|
||||||
])
|
])
|
||||||
|
AS_IF([test "$abi_err" = "yes" || test "$abi_errc" = "yes"], [
|
||||||
|
abi_err_h=yes
|
||||||
|
], [
|
||||||
|
abi_err_h=no
|
||||||
|
])
|
||||||
|
|
||||||
AM_CONDITIONAL([OS_WINDOWS], [test "x$is_windows" = "xyes"])
|
AM_CONDITIONAL([OS_WINDOWS], [test "x$is_windows" = "xyes"])
|
||||||
|
|
||||||
@@ -547,6 +552,7 @@ LIBBSD_SELECT_ABI([arc4random_stir], [arc4random_stir()/arc4random_addrandom()])
|
|||||||
LIBBSD_SELECT_ABI([asprintf], [vasprintf()/asprintf()])
|
LIBBSD_SELECT_ABI([asprintf], [vasprintf()/asprintf()])
|
||||||
LIBBSD_SELECT_ABI([bsd_getopt], [BSD getopt()])
|
LIBBSD_SELECT_ABI([bsd_getopt], [BSD getopt()])
|
||||||
LIBBSD_SELECT_ABI([closefrom], [closefrom()])
|
LIBBSD_SELECT_ABI([closefrom], [closefrom()])
|
||||||
|
LIBBSD_SELECT_ABI([err_h], [err.h header])
|
||||||
LIBBSD_SELECT_ABI([err], [err API])
|
LIBBSD_SELECT_ABI([err], [err API])
|
||||||
LIBBSD_SELECT_ABI([errc], [errc API])
|
LIBBSD_SELECT_ABI([errc], [errc API])
|
||||||
LIBBSD_SELECT_ABI([expand_number], [expand_number()])
|
LIBBSD_SELECT_ABI([expand_number], [expand_number()])
|
||||||
|
@@ -21,7 +21,7 @@ nobase_include_HEADERS = \
|
|||||||
bsd/wchar.h \
|
bsd/wchar.h \
|
||||||
# EOL
|
# EOL
|
||||||
|
|
||||||
if ABI_ERR
|
if ABI_ERR_H
|
||||||
nobase_include_HEADERS += \
|
nobase_include_HEADERS += \
|
||||||
bsd/err.h \
|
bsd/err.h \
|
||||||
# EOL
|
# EOL
|
||||||
|
Reference in New Issue
Block a user