summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAlastair Hughes <hobbitalastair@gmail.com>2016-02-04 07:25:28 +1300
committerAllan McRae <allan@archlinux.org>2016-02-20 14:01:53 +1000
commit50a2db4834906d83651c9e3cd4392adade6b6855 (patch)
tree5b361f36d82c0beb8dc18b368b2cb51a308dd76c /lib
parentfb72eede2020e49402e7c191608bf412239f85e8 (diff)
downloadpacman-50a2db4834906d83651c9e3cd4392adade6b6855.tar.xz
Add the missing limits.h include to hook.c
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@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/libalpm/hook.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libalpm/hook.c b/lib/libalpm/hook.c
index ed79fdd9..00d999b1 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"