Avoid installation glitches on Solaris 8 with Sun C 5.4.

* lib/.cvsignore: Add system-ioctl.h.
* lib/Makefile.tmpl (noinst_HEADERS): Add system-ioctl.h.
* src/buffer.c: Include system-ioctl.h.
* src/compare.c: Likewise.
* src/delete.c: Likewise.
* src/system.c: Include <getline.h>, <setenv.h>.
* src/tar.c: Include <getline.h>.
This commit is contained in:
Paul Eggert
2006-02-20 08:15:31 +00:00
parent cad45a0bae
commit f2bf9f2ffa
8 changed files with 44 additions and 22 deletions

View File

@@ -20,11 +20,13 @@
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
#include <system.h>
#include <system-ioctl.h>
#include <signal.h>
#include <closeout.h>
#include <fnmatch.h>
#include <getline.h>
#include <human.h>
#include <quotearg.h>
@@ -967,7 +969,7 @@ new_volume (enum access_mode mode)
static FILE *read_file;
static int looped;
int prompt;
if (!read_file && !info_script_option)
/* FIXME: if fopen is used, it will never be closed. */
read_file = archive == STDIN_FILENO ? fopen (TTY_NAME, "r") : stdin;
@@ -991,7 +993,7 @@ new_volume (enum access_mode mode)
looped = 1;
}
prompt = looped;
tryagain:
if (prompt)
{