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. */
 
     |