X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Ffatal.c;h=430e52a1cd05cf0e42105952674cbb2670fa09be;hb=aef0001b00b83a2dc068ceb9ac838a301227f2ea;hp=b5c8b57fa4b919acd397c12642ff705eb5d43520;hpb=862d856cf0083d07c86d56dce8f9be7b207a8dd4;p=gnulib.git diff --git a/lib/fatal.c b/lib/fatal.c index b5c8b57fa..430e52a1c 100644 --- a/lib/fatal.c +++ b/lib/fatal.c @@ -1,3 +1,21 @@ +/* Fatal exits for noninteractive utilities + + Copyright (C) 2001, 2003 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, + Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + #ifdef HAVE_CONFIG_H # include #endif @@ -7,13 +25,8 @@ #include #if HAVE_VPRINTF || HAVE_DOPRNT || _LIBC -# if __STDC__ -# include -# define VA_START(args, lastarg) va_start(args, lastarg) -# else -# include -# define VA_START(args, lastarg) va_start(args) -# endif +# include +# define VA_START(args, lastarg) va_start(args, lastarg) #else # define va_alist a1, a2, a3, a4, a5, a6, a7, a8 # define va_dcl char *a1, *a2, *a3, *a4, *a5, *a6, *a7, *a8; @@ -35,6 +48,7 @@ extern char *program_name; #endif #include "fatal.h" +#include "unlocked-io.h" /* Like error, but always exit with EXIT_FAILURE. */