From 5f64aa8c47c2d3a155a97e262f89cc47394a69eb Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Thu, 21 Jun 2018 19:58:53 -0700
Subject: [PATCH] include limits.h for PATH_MAX

Fixes

error: 'PATH_MAX' undeclared

Signed-off-by: Khem Raj <raj.khem@gmail.com>

---
 hugeadm.c                | 1 +
 tests/gethugepagesizes.c | 1 +
 2 files changed, 2 insertions(+)

diff --git a/hugeadm.c b/hugeadm.c
index fe4211d..8db274c 100644
--- a/hugeadm.c
+++ b/hugeadm.c
@@ -33,6 +33,7 @@
 #include <grp.h>
 #include <pwd.h>
 #include <fcntl.h>
+#include <limits.h>
 
 #include <sys/stat.h>
 #include <sys/types.h>
diff --git a/tests/gethugepagesizes.c b/tests/gethugepagesizes.c
index 9551b38..2645e3f 100644
--- a/tests/gethugepagesizes.c
+++ b/tests/gethugepagesizes.c
@@ -29,6 +29,7 @@
 #include <fcntl.h>
 #include <stdarg.h>
 #include <hugetlbfs.h>
+#include <limits.h>
 
 #include "hugetests.h"
 
