X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fyesno.c;h=54691b7ff999fdc5b348233e487d28d70e4523ab;hb=c60b43afa76cbc6ed19a4794eab0fe15f9b54300;hp=0ad5511d35d466819b5ed5364bcb2ca068ed1116;hpb=8357f9241a90631195c5cf590bd9ae2ad80eb698;p=gnulib.git diff --git a/lib/yesno.c b/lib/yesno.c index 0ad5511d3..54691b7ff 100644 --- a/lib/yesno.c +++ b/lib/yesno.c @@ -1,5 +1,5 @@ /* yesno.c -- read a yes/no response from stdin - Copyright (C) 1990, 1998, 2001, 2003 Free Software Foundation, Inc. + Copyright (C) 1990, 1998, 2001, 2003, 2004 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 @@ -19,10 +19,15 @@ # include #endif +#include "yesno.h" + #include #include #include -#include "unlocked-io.h" + +#if USE_UNLOCKED_IO +# include "unlocked-io.h" +#endif /* Read one line from standard input and return nonzero if that line begins with y or Y, @@ -30,7 +35,7 @@ extern int rpmatch (char const *response); -int +bool yesno (void) { /* We make some assumptions here: