kfreebsd-debuginfod
authorDebian Elfutils Maintainers <debian-gcc@lists.debian.org>
Fri, 2 Sep 2022 21:11:29 +0000 (22:11 +0100)
committerSergio Durigan Junior <sergiodj@debian.org>
Fri, 2 Sep 2022 21:11:29 +0000 (22:11 +0100)
Gbp-Pq: Name kfreebsd-debuginfod

debuginfod/debuginfod-client.c

index ea6e461a7a11e34a73a0a67d6a6bb03653551a34..91783ed86388a3704884cfa14e4229d12251b2c9 100644 (file)
@@ -77,7 +77,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>
@@ -108,6 +110,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. */