Skip to content

Commit 76fbac7

Browse files
committed
Fixed undeclared identifier to PATH_MAX on RHEL
On RHEL the macro `PATH_MAX` is in linux/limits.h, not limits.h. Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
1 parent 0a858a9 commit 76fbac7

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

deps-packaging/git/cfbuild-git.spec

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ case "$OS" in
3636
;;
3737
esac
3838

39+
# On RHEL the macro PATH_MAX is in linux/limits.h, not limits.h
40+
patch -p1 < %{_topdir}/SOURCES/fixed-undeclared-identifier-PATH_MAX.patch
41+
3942
make CURL_LDFLAGS="-lcurl"
4043

4144
%install
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
--- git-2.52.0/t/unit-tests/clar/clar.h 2025-11-17 17:38:17.000000000 +0100
2+
+++ git-2.52.0-modified/t/unit-tests/clar/clar.h 2025-11-24 14:06:57.567617033 +0100
3+
@@ -7,6 +7,7 @@
4+
#ifndef __CLAR_TEST_H__
5+
#define __CLAR_TEST_H__
6+
7+
+#include "git-compat-util.h"
8+
#include <stdlib.h>
9+
#include <limits.h>
10+

0 commit comments

Comments
 (0)