aports/testing/audit/0004-path_max.patch
Breno Leitao a9202ec8b3 testing/audit: Disable python3 binding on ppc64le
Python3 bindings for ppc64le is breaking due to swig break with stray
'/'. Disabling it for now.
2017-04-25 22:15:51 +00:00

24 lines
593 B
Diff

From ab123cbbffe90aefe1579d2708bae43e53e5afb4 Tue April 25 00:00:00 2001
From: Breno Leitao <breno.leitao@gmail.com>
Date: Tue, 25 April 2017 12:33:43 +0000
Subject: [PATCH] Define PATH_MAX if not defined
PATH_MAX is not being defined on ppc64le, which causes a FTBFS.
This patch check that it is defined, otherwise, defines it.
Signed-off-by: Breno Leitao <breno.leitao@gmail.com>
--- a/lib/libaudit.h
+++ b/lib/libaudit.h
@@ -637,6 +637,10 @@
int audit_can_write(void);
int audit_can_read(void);
+#if !defined(PATH_MAX)
+#define PATH_MAX 4096
+#endif
+
#ifdef __cplusplus
}
#endif