Skip to content

tests: only include bsd/string.h when configure found it - #119

Open
daeho-ro wants to merge 1 commit into
Juniper:mainfrom
daeho-ro:tests-gettext-bsd-string
Open

daeho-ro wants to merge 1 commit into
Juniper:mainfrom
daeho-ro:tests-gettext-bsd-string

Conversation

@daeho-ro

Copy link
Copy Markdown

tests/gettext/gt_01.c includes <bsd/string.h> under #ifdef HAVE_GCC, so on glibc systems without libbsd the gettext test fails to compile:

gt_01.c:27:10: fatal error: bsd/string.h: No such file or directory

libxo/xo_string.h already guards the same include with HAVE_BSD_STRING_H, which configure sets via AC_CHECK_HEADERS([bsd/string.h]). Use the same guard in the test.

Seen while packaging 2.1.0 for Homebrew on Linux

tests/gettext/gt_01.c includes <bsd/string.h> under HAVE_GCC, so on
glibc systems without libbsd the gettext test fails to compile:

    gt_01.c:27:10: fatal error: bsd/string.h: No such file or directory

libxo/xo_string.h already guards the same include with
HAVE_BSD_STRING_H, which configure sets via
AC_CHECK_HEADERS([bsd/string.h]). Use the same guard here.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant