PATH_MAX is only defined in limits.h in musl libc, so ensure that it is
included. Presumably this is also required on other platforms.

Signed-off-by: Alastair Hughes <[email protected]>
---
 lib/libalpm/hook.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/libalpm/hook.c b/lib/libalpm/hook.c
index ed79fdd..00d999b 100644
--- a/lib/libalpm/hook.c
+++ b/lib/libalpm/hook.c
@@ -20,6 +20,7 @@
 #include <ctype.h>
 #include <dirent.h>
 #include <errno.h>
+#include <limits.h>
 #include <string.h>
 
 #include "handle.h"
-- 
2.7.0

Reply via email to