#endif
#include <fcntl.h>
#include <assert.h>
+
+/* For TIOCGWINSZ and friends: */
#ifdef HAVE_SYS_IOCTL_H
# include <sys/ioctl.h>
#endif
+#ifdef HAVE_TERMIOS_H
+# include <termios.h>
+#endif
#include "wget.h"
#include "utils.h"
{
register int i, start;
int changes = 0;
- char stub_char;
if (!*path)
return 0;
- stub_char = '/';
-
if (path[0] == '/')
/* Preserve initial '/'. */
++path;