X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Fdemo_termcap.c;h=00a64849b1e0090232b3cd62700966daae0d6769;hp=e252d1d9814400f1c75dc49547eb2223c5a9ee2a;hb=eccca377f55c70b12e3e92621d94d1e1c1fcfb7d;hpb=acb4184f8f69fddd052a3daa8c8675f4bf8ce369 diff --git a/test/demo_termcap.c b/test/demo_termcap.c index e252d1d9..00a64849 100644 --- a/test/demo_termcap.c +++ b/test/demo_termcap.c @@ -1,5 +1,5 @@ /**************************************************************************** - * Copyright (c) 2005-2016,2017 Free Software Foundation, Inc. * + * Copyright (c) 2005-2017,2019 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 * @@ -29,7 +29,7 @@ /* * Author: Thomas E. Dickey * - * $Id: demo_termcap.c,v 1.56 2017/12/26 22:41:47 tom Exp $ + * $Id: demo_termcap.c,v 1.57 2019/01/21 22:50:46 tom Exp $ * * A simple demo of the termcap interface. */ @@ -46,9 +46,13 @@ #endif #endif -#if defined(NCURSES_VERSION) && HAVE_TERMCAP_H +#if defined(NCURSES_VERSION) +#if HAVE_NCURSES_TERMCAP_H +#include +#elif HAVE_TERMCAP_H #include #endif +#endif static void failed(const char *) GCC_NORETURN;