summaryrefslogtreecommitdiff
path: root/test/argp/tst-argp2.c
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2016-11-03 20:19:02 +0100
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2016-11-03 20:19:02 +0100
commit24b4b8b66366176b40525baa1b2f056e8a68d0ce (patch)
treec705733ff04ff1d089eff6494622668632565a62 /test/argp/tst-argp2.c
parent3384c45e66ddf18f235654b67ae34ac7dcb07534 (diff)
argp: be sure uClibc-ng feature is available
Diffstat (limited to 'test/argp/tst-argp2.c')
-rw-r--r--test/argp/tst-argp2.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/argp/tst-argp2.c b/test/argp/tst-argp2.c
index 03afc0b..0e521a9 100644
--- a/test/argp/tst-argp2.c
+++ b/test/argp/tst-argp2.c
@@ -16,6 +16,7 @@
License along with the GNU C Library; see the file COPYING.LIB. If
not, see <http://www.gnu.org/licenses/>.  */
+#if (defined(__GLIBC__) && !defined(__UCLIBC__)) || defined(__UCLIBC_HAS_ARGP__)
#include <argp.h>
static const struct argp_option opt1[] =
@@ -87,12 +88,17 @@ static struct argp argp1 =
opt1, NULL, "args doc1", "doc1", children1, NULL, NULL
};
+#endif
static int
do_test (void)
{
+#if (defined(__GLIBC__) && !defined(__UCLIBC__)) || defined(__UCLIBC_HAS_ARGP__)
argp_help (&argp1, stdout, ARGP_HELP_LONG, (char *) "tst-argp2");
return 0;
+#else
+ return 23;
+#endif
}