From ce795c70947ffc1a52a02394d9aa03b81eb3b2b4 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 14 Aug 2009 08:17:46 +0200 Subject: [PATCH] test-exclude: avoid coreutils "make check" failure * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define, just as in test-argmatch.c. --- ChangeLog | 6 ++++++ tests/test-exclude.c | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/ChangeLog b/ChangeLog index d6c3670e6e..ab455e1397 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2009-08-14 Jim Meyering + + test-exclude: avoid coreutils "make check" failure + * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define, + just as in test-argmatch.c. + 2009-08-13 Eric Blake test-dup2: fix bad assumption diff --git a/tests/test-exclude.c b/tests/test-exclude.c index c220e0b35b..a729bba366 100644 --- a/tests/test-exclude.c +++ b/tests/test-exclude.c @@ -60,6 +60,12 @@ int exclude_flags[] = { ARGMATCH_VERIFY (exclude_keywords, exclude_flags); +/* Some packages define ARGMATCH_DIE and ARGMATCH_DIE_DECL in , and + thus must link with a definition of that function. Provide it here. */ +#ifdef ARGMATCH_DIE_DECL +ARGMATCH_DIE_DECL { exit (1); } +#endif + int main (int argc, char **argv) { -- 2.30.2