diff --git a/pwdx.c b/pwdx.c
index cb96a52..29ebce2 100644
--- a/pwdx.c
+++ b/pwdx.c
@@ -13,7 +13,7 @@
 #include <stdlib.h>
 #include <sys/types.h>
 #include <regex.h>
-#include <limits.h>
+#include <linux/limits.h>
 #include <unistd.h>
 #include <errno.h>
 
