Author: Andreas Beckmann <anbe@debian.org>
Description: fix building with -Werror=implicit-function-declaration

--- a/seek_set.c
+++ b/seek_set.c
@@ -1,4 +1,5 @@
 #include <sys/types.h>
+#include <unistd.h>
 #include "seek.h"
 
 #define SET 0 /* sigh */
--- a/auto-str.c
+++ b/auto-str.c
@@ -4,7 +4,7 @@
 char bspace[256];
 buffer b = BUFFER_INIT(buffer_unixwrite,1,bspace,sizeof bspace);
 
-void puts(const char *s)
+void _puts(const char *s)
 {
   if (buffer_puts(&b,s) == -1) _exit(111);
 }
@@ -21,20 +21,20 @@ int main(int argc,char **argv)
   value = argv[2];
   if (!value) _exit(100);
 
-  puts("const char ");
-  puts(name);
-  puts("[] = \"\\\n");
+  _puts("const char ");
+  _puts(name);
+  _puts("[] = \"\\\n");
 
   while (ch = *value++) {
-    puts("\\");
+    _puts("\\");
     octal[3] = 0;
     octal[2] = '0' + (ch & 7); ch >>= 3;
     octal[1] = '0' + (ch & 7); ch >>= 3;
     octal[0] = '0' + (ch & 7);
-    puts(octal);
+    _puts(octal);
   }
 
-  puts("\\\n\";\n");
+  _puts("\\\n\";\n");
   if (buffer_flush(&b) == -1) _exit(111);
   _exit(0);
 }
--- a/chkshsgr.c
+++ b/chkshsgr.c
@@ -1,3 +1,5 @@
+#include <unistd.h>
+#include <grp.h>
 #include "exit.h"
 
 int main()
--- a/dnsq.c
+++ b/dnsq.c
@@ -10,6 +10,7 @@
 #include "printpacket.h"
 #include "parsetype.h"
 #include "dns.h"
+#include "exit.h"
 
 #define FATAL "dnsq: fatal: "
 
--- a/dnsqr.c
+++ b/dnsqr.c
@@ -9,6 +9,7 @@
 #include "printpacket.h"
 #include "parsetype.h"
 #include "dns.h"
+#include "exit.h"
 
 #define FATAL "dnsqr: fatal: "
 
--- a/utime.c
+++ b/utime.c
@@ -1,5 +1,6 @@
 #include <sys/types.h>
 #include <sys/time.h>
+#include <utime.h>
 #include "scan.h"
 #include "exit.h"
 
--- a/hier.c
+++ b/hier.c
@@ -1,5 +1,9 @@
 #include "auto_home.h"
 
+void h(char *home, int uid, int gid, int mode);
+void d(char *home, char *subdir, int uid, int gid, int mode);
+void c(char *home, char *subdir, char *file, int uid, int gid, int mode);
+
 void hier()
 {
   c("/","etc","dnsroots.global",-1,-1,0644);
--- a/prot.c
+++ b/prot.c
@@ -1,3 +1,5 @@
+#include <unistd.h>
+#include <grp.h>
 #include "hasshsgr.h"
 #include "prot.h"
 
