summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-10-11 20:23:45 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-10-11 20:23:45 +0200
commit54386e55c855a0b7063f9c9672baa13a12a1514e (patch)
tree9a7b543e68519260997ab47cab74e0452d3bd649 /src
parentTrying that (diff)
download42-minishell-54386e55c855a0b7063f9c9672baa13a12a1514e.tar.gz
42-minishell-54386e55c855a0b7063f9c9672baa13a12a1514e.tar.bz2
42-minishell-54386e55c855a0b7063f9c9672baa13a12a1514e.tar.xz
42-minishell-54386e55c855a0b7063f9c9672baa13a12a1514e.tar.zst
42-minishell-54386e55c855a0b7063f9c9672baa13a12a1514e.zip
Some linux stuff
Diffstat (limited to '')
-rw-r--r--src/b_alias.c2
-rw-r--r--src/b_cd.c6
-rw-r--r--src/b_type.c6
-rw-r--r--src/e_externs.c6
-rw-r--r--src/e_pipes.c6
-rw-r--r--src/e_unshebanged.c6
-rw-r--r--src/m_init.c6
-rw-r--r--src/s_struct.h6
8 files changed, 36 insertions, 8 deletions
diff --git a/src/b_alias.c b/src/b_alias.c
index aab0458..efed4b5 100644
--- a/src/b_alias.c
+++ b/src/b_alias.c
@@ -14,7 +14,7 @@
#include <stdint.h>
#include <stdlib.h>
#include <unistd.h>
-#ifndef linux
+#ifdef linux
# include <linux/limits.h>
#else
# include <limits.h>
diff --git a/src/b_cd.c b/src/b_cd.c
index 410829a..a7a4838 100644
--- a/src/b_cd.c
+++ b/src/b_cd.c
@@ -13,7 +13,11 @@
#include <libft.h>
#include <stdint.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/b_type.c b/src/b_type.c
index 6a75f13..622ca52 100644
--- a/src/b_type.c
+++ b/src/b_type.c
@@ -15,7 +15,11 @@
#include <dirent.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 "f_fail.h"
diff --git a/src/e_externs.c b/src/e_externs.c
index 7b25516..8555cad 100644
--- a/src/e_externs.c
+++ b/src/e_externs.c
@@ -17,7 +17,11 @@
#include <string.h>
#include <fcntl.h>
#include <unistd.h>
-#include <limits.h>
+#ifdef linux
+# include <linux/limits.h>
+#else
+# include <limits.h>
+#endif
#include <errno.h>
#include "b_export_next.h"
diff --git a/src/e_pipes.c b/src/e_pipes.c
index 0177870..312fa87 100644
--- a/src/e_pipes.c
+++ b/src/e_pipes.c
@@ -14,7 +14,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 <unistd.h>
#include "e_builtins.h"
diff --git a/src/e_unshebanged.c b/src/e_unshebanged.c
index 3fd8fac..f88e19c 100644
--- a/src/e_unshebanged.c
+++ b/src/e_unshebanged.c
@@ -13,7 +13,11 @@
#include <libft.h>
#include <stdlib.h>
#include <unistd.h>
-#include <limits.h>
+#ifdef linux
+# include <linux/limits.h>
+#else
+# include <limits.h>
+#endif
#include <errno.h>
#include "f_fail.h"
diff --git a/src/m_init.c b/src/m_init.c
index 5dc5344..64f9096 100644
--- a/src/m_init.c
+++ b/src/m_init.c
@@ -12,7 +12,11 @@
#include <libft.h>
#include <stdlib.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_struct.h b/src/s_struct.h
index c4ffffe..58aa155 100644
--- a/src/s_struct.h
+++ b/src/s_struct.h
@@ -15,7 +15,11 @@
# include <stdint.h>
# include <stddef.h>
-# include <limits.h>
+# ifdef linux
+# include <linux/limits.h>
+# else
+# include <limits.h>
+# endif
# include "d_define.h"