summaryrefslogtreecommitdiff
path: root/net-misc/ices/files/ices-2.0.2-gettimeofday.patch
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-10-07 01:22:59 +0100
committerV3n3RiX <venerix@koprulu.sector>2022-10-07 01:22:59 +0100
commita67cd6675142fbbe7b09fff2361f2961a9031451 (patch)
tree50c9362957d0fe7af9b67eb05a22aac8287e6521 /net-misc/ices/files/ices-2.0.2-gettimeofday.patch
parent744892aecb5cdf9ca0bbe504f7bbcdfb87b518fc (diff)
gentoo auto-resync : 07:10:2022 - 01:22:59
Diffstat (limited to 'net-misc/ices/files/ices-2.0.2-gettimeofday.patch')
-rw-r--r--net-misc/ices/files/ices-2.0.2-gettimeofday.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/net-misc/ices/files/ices-2.0.2-gettimeofday.patch b/net-misc/ices/files/ices-2.0.2-gettimeofday.patch
new file mode 100644
index 000000000000..ba5e7ca1c4a5
--- /dev/null
+++ b/net-misc/ices/files/ices-2.0.2-gettimeofday.patch
@@ -0,0 +1,15 @@
+Uses gettimeofday but won't include sys/time.h without HAVE_SYS_TIME_H
+leading to failure with -Werror=implicit-function-declaration (clang16).
+
+sys/timeb.h is for deprecated ftime() and should not be used.
+
+https://bugs.gentoo.org/870973
+--- a/configure.in
++++ b/configure.in
+@@ -51,5 +51,5 @@
+ dnl Checks for header files.
+ AC_HEADER_STDC
+-AC_CHECK_HEADERS([stropts.h sys/timeb.h sys/select.h])
++AC_CHECK_HEADERS([stropts.h sys/time.h sys/select.h])
+
+ dnl ================================================================