diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/m_loop.c | 6 | ||||
-rw-r--r-- | src/m_mshrc.c | 6 | ||||
-rw-r--r-- | src/m_prompt_seq.c | 6 | ||||
-rw-r--r-- | src/p_lblock_next.c | 6 | ||||
-rw-r--r-- | src/p_redirs.c | 6 | ||||
-rw-r--r-- | src/p_subst_home.c | 6 | ||||
-rw-r--r-- | src/s_init.c | 6 | ||||
-rw-r--r-- | src/s_init_next.c | 6 | ||||
-rw-r--r-- | src/s_lredir.c | 6 | ||||
-rw-r--r-- | src/u_path.c | 6 | ||||
-rw-r--r-- | src/u_vars_next.c | 6 |
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" |