1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
|
From: Bastian Germann <bage@debian.org>
Date: Sun, 7 Apr 2024 13:48:23 +0000
Subject: Add missing include
---
src/have_func.sh | 1 +
1 file changed, 1 insertion(+)
--- a/src/have_func.sh
+++ b/src/have_func.sh
@@ -21,6 +21,7 @@ DEFINE=undef
#
cat >$FILE.c <<EOF
#include <sys/types.h>
+#include <unistd.h>
$extraheader
int main(void)
{
--- a/src/gettimeofday.sh
+++ b/src/gettimeofday.sh
@@ -6,8 +6,9 @@ FILE=conftest.$$
set -e
cat >$FILE.c <<EOF
+#include <sys/time.h>
int main() {
- return gettimeofday();
+ return gettimeofday(0, 0);
}
EOF
./auto-compile.sh -c $FILE.c 2>/dev/null >/dev/null # die if failure
--- a/src/dns.h
+++ b/src/dns.h
@@ -70,6 +70,7 @@ extern struct dns_transmit dns_resolve_t
extern int dns_ip4_packet(stralloc *,const char *,unsigned int);
extern int dns_ip4(stralloc *,const stralloc *);
+extern int dns_ip6(stralloc *,stralloc *);
extern int dns_ip64_packet(stralloc *,char *,unsigned int);
extern int dns_ip64(stralloc *,stralloc *);
extern int dns_name_packet(stralloc *,const char *,unsigned int);
--- a/src/utimes.c
+++ b/src/utimes.c
@@ -1,3 +1,4 @@
+#if 0
/*
* placed in the public domain by Uwe Ohse, uwe@ohse.de.
*/
@@ -15,3 +16,4 @@ utimes(char *fname, struct timeval *t)
u.modtime = t[1].tv_sec;
return (utime(fname, &u));
}
+#endif
|