From: openKylin Developers <packaging@lists.openkylin.top>
Date: Tue, 16 Apr 2024 16:01:39 +0800
Subject: kfreebsd-debuginfod

===================================================================
---
 debuginfod/debuginfod-client.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/debuginfod/debuginfod-client.c b/debuginfod/debuginfod-client.c
index 21fd8fb..8ee9a84 100644
--- a/debuginfod/debuginfod-client.c
+++ b/debuginfod/debuginfod-client.c
@@ -100,7 +100,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>
@@ -159,6 +161,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. */
