Description: Fix undeclared limits.h macros in test programs
 The OpenKylin glibc/GCC toolchain no longer pulls <limits.h> in
 transitively, so test programs that use INT_MAX or ULONG_MAX without
 including <limits.h> fail to build with:
 .
   src/test/futex_requeue.c:46:66: error: 'INT_MAX' undeclared
 .
 Add the missing #include <limits.h> to the affected test programs.
Author: tangxiaofeng <tangxiaofeng@kylinos.cn>
Origin: vendor
Forwarded: not-needed
Last-Update: 2026-09-14

--- rr-5.9.0.orig/src/test/async_kill_with_syscallbuf2.c
+++ rr-5.9.0/src/test/async_kill_with_syscallbuf2.c
@@ -1,6 +1,7 @@
 /* -*- Mode: C; tab-width: 8; c-basic-offset: 2; indent-tabs-mode: nil; -*- */
 
 #include "util.h"
+#include <limits.h>
 
 int main(void) {
   unsigned long iteration = 0;
--- rr-5.9.0.orig/src/test/futex_requeue.c
+++ rr-5.9.0/src/test/futex_requeue.c
@@ -1,6 +1,7 @@
 /* -*- Mode: C; tab-width: 8; c-basic-offset: 2; indent-tabs-mode: nil; -*- */
 
 #include "util.h"
+#include <limits.h>
 
 static volatile int v;
 static volatile int v2;
--- rr-5.9.0.orig/src/test/pidfd.c
+++ rr-5.9.0/src/test/pidfd.c
@@ -1,6 +1,7 @@
 /* -*- Mode: C; tab-width: 8; c-basic-offset: 2; indent-tabs-mode: nil; -*- */
 
 #include "util.h"
+#include <limits.h>
 
 #define RR_P_PIDFD 3
 
