File: kfreebsd-debuginfod

package info (click to toggle)
elfutils 0.193-3
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 27,488 kB
  • sloc: ansic: 113,937; sh: 35,411; cpp: 4,998; makefile: 1,935; yacc: 1,388; lex: 130; asm: 77; sed: 39; awk: 35
file content (23 lines) | stat: -rw-r--r-- 565 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--- a/debuginfod/debuginfod-client.c
+++ b/debuginfod/debuginfod-client.c
@@ -97,7 +97,9 @@ void debuginfod_end (debuginfod_client *
 #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>
@@ -156,6 +158,10 @@ struct public_key_entry
 #endif
 
 
+#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. */