kfreebsd-debuginfod
authorDebian Elfutils Maintainers <debian-gcc@lists.debian.org>
Tue, 12 Mar 2024 10:42:59 +0000 (11:42 +0100)
committerMatthias Klose <doko@debian.org>
Tue, 12 Mar 2024 10:42:59 +0000 (11:42 +0100)
===================================================================

Gbp-Pq: Name kfreebsd-debuginfod

debuginfod/debuginfod-client.c

index 0ee7db3d66380899fc628efda7f339db7b8d6b9c..d18fd3c89afcf8e5d462763fd0d57f1f1d86e144 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>
@@ -122,6 +124,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. */