kfreebsd-debuginfod
authorDebian Elfutils Maintainers <debian-gcc@lists.debian.org>
Sat, 14 Jan 2023 13:54:50 +0000 (13:54 +0000)
committerHelge Kreutzmann <debian@helgefjell.de>
Sat, 14 Jan 2023 13:54:50 +0000 (13:54 +0000)
===================================================================

Gbp-Pq: Name kfreebsd-debuginfod

debuginfod/debuginfod-client.c

index 0c4a00cf9c6a0828e23237b29f9a77f9ba14639a..20759ceb4562848ba94b40521911e71c34811bca 100644 (file)
@@ -84,7 +84,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>
@@ -115,6 +117,10 @@ libcurl_init(void)
   curl_global_init(CURL_GLOBAL_DEFAULT);
 }
 
+#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. */