[pacman-dev] [PATCH] Add the missing limits.h include to hook.c

Alastair Hughes hobbitalastair at gmail.com
Wed Feb 3 18:25:28 UTC 2016


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 <hobbitalastair at gmail.com>
---
 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


More information about the pacman-dev mailing list