summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-10-12 18:50:11 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-10-12 18:50:11 +0200
commitd457d147dce9a995df2a03ecb49b51f61cef4fb0 (patch)
treeb06b41c843177917a48071ba3585f45fa003f88a
parentCompat fix (diff)
download42-minishell-d457d147dce9a995df2a03ecb49b51f61cef4fb0.tar.gz
42-minishell-d457d147dce9a995df2a03ecb49b51f61cef4fb0.tar.bz2
42-minishell-d457d147dce9a995df2a03ecb49b51f61cef4fb0.tar.xz
42-minishell-d457d147dce9a995df2a03ecb49b51f61cef4fb0.tar.zst
42-minishell-d457d147dce9a995df2a03ecb49b51f61cef4fb0.zip
Update
-rw-r--r--src/m_prompt.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/m_prompt.c b/src/m_prompt.c
index e0b3ed1..e9589a5 100644
--- a/src/m_prompt.c
+++ b/src/m_prompt.c
@@ -14,7 +14,11 @@
#include <stddef.h>
#include <stdint.h>
#include <unistd.h>
-#include <limits.h>
+#ifdef __linux__
+# include <linux/limits.h>
+#else
+# include <limits.h>
+#endif
#include "d_define.h"
#include "m_prompt.h"