summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-10-12 18:57:07 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-10-12 18:57:07 +0200
commit645bdf95a4e01e3ae567d2665436241853d0c2a9 (patch)
tree8ff7e52a70b94c60d137ae9a10383c93ff391fe3
parentUpdate (diff)
download42-minishell-645bdf95a4e01e3ae567d2665436241853d0c2a9.tar.gz
42-minishell-645bdf95a4e01e3ae567d2665436241853d0c2a9.tar.bz2
42-minishell-645bdf95a4e01e3ae567d2665436241853d0c2a9.tar.xz
42-minishell-645bdf95a4e01e3ae567d2665436241853d0c2a9.tar.zst
42-minishell-645bdf95a4e01e3ae567d2665436241853d0c2a9.zip
Limits update
-rw-r--r--src/m_loop.c6
-rw-r--r--src/m_mshrc.c6
-rw-r--r--src/m_prompt_seq.c6
-rw-r--r--src/p_lblock_next.c6
-rw-r--r--src/p_redirs.c6
-rw-r--r--src/p_subst_home.c6
-rw-r--r--src/s_init.c6
-rw-r--r--src/s_init_next.c6
-rw-r--r--src/s_lredir.c6
-rw-r--r--src/u_path.c6
-rw-r--r--src/u_vars_next.c6
11 files changed, 55 insertions, 11 deletions
diff --git a/src/m_loop.c b/src/m_loop.c
index ac3ca12..b111577 100644
--- a/src/m_loop.c
+++ b/src/m_loop.c
@@ -15,7 +15,11 @@
#include <stdlib.h>
#include <fcntl.h>
#include <unistd.h>
-#include <limits.h>
+#ifdef __linux__
+# include <linux/limits.h>
+#else
+# include <limits.h>
+#endif
#include "d_define.h"
#include "e_line.h"
diff --git a/src/m_mshrc.c b/src/m_mshrc.c
index 41c7bef..424e17b 100644
--- a/src/m_mshrc.c
+++ b/src/m_mshrc.c
@@ -15,7 +15,11 @@
#include <stdlib.h>
#include <fcntl.h>
#include <unistd.h>
-#include <limits.h>
+#ifdef __linux__
+# include <linux/limits.h>
+#else
+# include <limits.h>
+#endif
#include "d_define.h"
#include "s_struct.h"
diff --git a/src/m_prompt_seq.c b/src/m_prompt_seq.c
index 01c0ea4..2a77371 100644
--- a/src/m_prompt_seq.c
+++ b/src/m_prompt_seq.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 "s_struct.h"
#include "u_vars.h"
diff --git a/src/p_lblock_next.c b/src/p_lblock_next.c
index bfdca3d..9708a09 100644
--- a/src/p_lblock_next.c
+++ b/src/p_lblock_next.c
@@ -13,7 +13,11 @@
#include <libft.h>
#include <stdlib.h>
#include <stdint.h>
-#include <limits.h>
+#ifdef __linux__
+# include <linux/limits.h>
+#else
+# include <limits.h>
+#endif
#include "d_define.h"
#include "s_destroy.h"
diff --git a/src/p_redirs.c b/src/p_redirs.c
index cbc9a10..091293c 100644
--- a/src/p_redirs.c
+++ b/src/p_redirs.c
@@ -14,7 +14,11 @@
#include <stdint.h>
#include <stddef.h>
#include <unistd.h>
-#include <limits.h>
+#ifdef __linux__
+# include <linux/limits.h>
+#else
+# include <limits.h>
+#endif
#include "d_define.h"
#include "p_redirs.h"
diff --git a/src/p_subst_home.c b/src/p_subst_home.c
index ee9ed42..6236260 100644
--- a/src/p_subst_home.c
+++ b/src/p_subst_home.c
@@ -12,7 +12,11 @@
#include <libft.h>
#include <stddef.h>
-#include <limits.h>
+#ifdef __linux__
+# include <linux/limits.h>
+#else
+# include <limits.h>
+#endif
#include "d_define.h"
#include "s_struct.h"
diff --git a/src/s_init.c b/src/s_init.c
index 1c7e05a..41416e8 100644
--- a/src/s_init.c
+++ b/src/s_init.c
@@ -14,7 +14,11 @@
#include <stdint.h>
#include <stdlib.h>
#include <unistd.h>
-#include <limits.h>
+#ifdef __linux__
+# include <linux/limits.h>
+#else
+# include <limits.h>
+#endif
#include "b_export_next.h"
#include "d_define.h"
diff --git a/src/s_init_next.c b/src/s_init_next.c
index e8e0006..8731957 100644
--- a/src/s_init_next.c
+++ b/src/s_init_next.c
@@ -15,7 +15,11 @@
#include <unistd.h>
#include <dirent.h>
#include <errno.h>
-#include <limits.h>
+#ifdef __linux__
+# include <linux/limits.h>
+#else
+# include <limits.h>
+#endif
#include "b_export_next.h"
#include "f_fail.h"
diff --git a/src/s_lredir.c b/src/s_lredir.c
index cee0691..14ca0ae 100644
--- a/src/s_lredir.c
+++ b/src/s_lredir.c
@@ -13,7 +13,11 @@
#include <libft.h>
#include <stdint.h>
#include <stdlib.h>
-#include <limits.h>
+#ifdef __linux__
+# include <linux/limits.h>
+#else
+# include <limits.h>
+#endif
#include "s_struct.h"
diff --git a/src/u_path.c b/src/u_path.c
index d851d8b..0223164 100644
--- a/src/u_path.c
+++ b/src/u_path.c
@@ -13,7 +13,11 @@
#include <libft.h>
#include <stddef.h>
#include <dirent.h>
-#include <limits.h>
+#ifdef __linux__
+# include <linux/limits.h>
+#else
+# include <limits.h>
+#endif
#include "s_struct.h"
#include "u_path.h"
diff --git a/src/u_vars_next.c b/src/u_vars_next.c
index 6455efe..0e3c33d 100644
--- a/src/u_vars_next.c
+++ b/src/u_vars_next.c
@@ -13,7 +13,11 @@
#include <libft.h>
#include <stdint.h>
#include <stdlib.h>
-#include <limits.h>
+#ifdef __linux__
+# include <linux/limits.h>
+#else
+# include <limits.h>
+#endif
#include "d_enum.h"
#include "s_lvars.h"