kfreebsd-debuginfod
authorDebian Elfutils Maintainers <debian-gcc@lists.debian.org>
Tue, 22 Oct 2024 11:13:50 +0000 (13:13 +0200)
committerMatthias Klose <doko@debian.org>
Tue, 22 Oct 2024 11:13:50 +0000 (13:13 +0200)
Gbp-Pq: Name kfreebsd-debuginfod

debuginfod/debuginfod-client.c

index deff19ff4568a9be2915b93b44a283fccfd50844..0c2b43e6f33918955f5a73b20b6b62bb9837b796 100644 (file)
@@ -97,7 +97,9 @@ void debuginfod_end (debuginfod_client *c) { }
 #include <regex.h>
 #include <string.h>
 #include <stdbool.h>
+#ifdef __linux__
 #include <linux/limits.h>
+#endif
 #include <time.h>
 #include <utime.h>
 #include <sys/syscall.h>
@@ -156,6 +158,10 @@ struct public_key_entry
 #endif
 
 
+#ifndef ETIME
+#define ETIME ETIMEDOUT /* Timer expired, fallback if not found in errno.h like on Linux */
+#endif
+
 struct debuginfod_client
 {
   /* Progress/interrupt callback function. */