X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=progs%2Fprogs.priv.h;h=63ff9a7bedc48649de12211c9d3505da2697ebb6;hp=604c56bea89ba529e6ecf824792b5b0141495df7;hb=43bb25186a3fa2cc24c08b3a1eedbb1e860c59a9;hpb=55ccd2b959766810cf7db8d1c4462f338ce0afc8 diff --git a/progs/progs.priv.h b/progs/progs.priv.h index 604c56be..63ff9a7b 100644 --- a/progs/progs.priv.h +++ b/progs/progs.priv.h @@ -1,5 +1,5 @@ /**************************************************************************** - * Copyright (c) 1998-2001,2005 Free Software Foundation, Inc. * + * Copyright (c) 1998-2008,2011 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 * @@ -30,7 +30,7 @@ * Author: Thomas E. Dickey 1997-on * ****************************************************************************/ /* - * $Id: progs.priv.h,v 1.29 2005/08/06 20:05:32 tom Exp $ + * $Id: progs.priv.h,v 1.36 2011/06/26 09:31:22 tom Exp $ * * progs.priv.h * @@ -90,6 +90,7 @@ # endif #endif +#include #include #if DECL_ERRNO @@ -98,7 +99,7 @@ extern int errno; #if HAVE_GETOPT_H #include -#else +#elif !defined(HAVE_GETOPT_HEADER) /* 'getopt()' may be prototyped in , but declaring its * variables doesn't hurt. */ @@ -108,8 +109,19 @@ extern int optind; #include #include +#include #include +#include + #include +#if HAVE_NC_FREEALL +#undef ExitProgram +#ifdef USE_LIBTINFO +#define ExitProgram(code) _nc_free_tinfo(code) +#else +#define ExitProgram(code) _nc_free_tic(code) +#endif +#endif /* usually in */ #ifndef STDOUT_FILENO