X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Ftest_arrays.c;h=9cdeb0c496c9a0247f28e08fc1cda8af12a527e8;hp=3764b604eed72a8ed051b3f5d568ca98a2e45d16;hb=2560bc3dae7f4919060c02c91a593566c908091c;hpb=dfaa1a3001fd447819f5edc2e523acc1a04f1440 diff --git a/test/test_arrays.c b/test/test_arrays.c index 3764b604..9cdeb0c4 100644 --- a/test/test_arrays.c +++ b/test/test_arrays.c @@ -1,5 +1,5 @@ /**************************************************************************** - * Copyright (c) 2007,2008 Free Software Foundation, Inc. * + * Copyright (c) 2007-2008,2010 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this software and associated documentation files (the * @@ -26,7 +26,7 @@ * authorization. * ****************************************************************************/ /* - * $Id: test_arrays.c,v 1.4 2009/07/17 00:09:00 tom Exp $ + * $Id: test_arrays.c,v 1.6 2010/11/13 19:57:57 tom Exp $ * * Author: Thomas E Dickey * @@ -47,6 +47,7 @@ extern NCURSES_EXPORT_VAR(NCURSES_CONST char * const ) strfnames[]; #define USE_TINFO #include +#if HAVE_TIGETSTR #if defined(HAVE_CURSES_DATA_BOOLNAMES) || defined(DECL_CURSES_DATA_BOOLNAMES) #define DUMP(name) dump_array(#name, name) @@ -88,3 +89,11 @@ main(int argc GCC_UNUSED, char *argv[]GCC_UNUSED) ExitProgram(EXIT_FAILURE); } #endif +#else /* !HAVE_TIGETSTR */ +int +main(int argc GCC_UNUSED, char *argv[]GCC_UNUSED) +{ + printf("This program requires the terminfo functions such as tigetstr\n"); + ExitProgram(EXIT_FAILURE); +} +#endif /* HAVE_TIGETSTR */