summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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"