File: kfreebsd-debuginfod

package info (click to toggle)
elfutils 0.188-2.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 22,996 kB
  • sloc: ansic: 104,903; sh: 30,846; cpp: 3,488; makefile: 1,643; yacc: 1,390; lex: 128; asm: 77; awk: 34; sed: 16
file content (25 lines) | stat: -rw-r--r-- 759 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Index: elfutils-0.188/debuginfod/debuginfod-client.c
===================================================================
--- elfutils-0.188.orig/debuginfod/debuginfod-client.c	2022-11-13 15:20:25.177144304 -0500
+++ elfutils-0.188/debuginfod/debuginfod-client.c	2022-11-13 15:20:25.173144291 -0500
@@ -84,7 +84,9 @@
 #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 @@
   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. */