kfreebsd-debuginfod
authorDebian Elfutils Maintainers <debian-gcc@lists.debian.org>
Tue, 4 Jul 2023 09:37:16 +0000 (10:37 +0100)
committerMatthias Klose <doko@debian.org>
Tue, 4 Jul 2023 09:37:16 +0000 (10:37 +0100)
===================================================================

Gbp-Pq: Name kfreebsd-debuginfod

debuginfod/debuginfod-client.c

index ef4d47e32a33a5b40c9ef68b16c2e483285dbd38..180b4da891450c6ed8398abc2330073e67357c5d 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. */