summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/b_alias.c2
-rw-r--r--src/b_alias_print.c5
-rw-r--r--src/b_type.c2
-rw-r--r--src/e_externs.c2
-rw-r--r--src/e_pipes.c2
-rw-r--r--src/e_unshebanged.c2
-rw-r--r--src/m_init.c2
-rw-r--r--src/s_struct.h2
8 files changed, 12 insertions, 7 deletions
diff --git a/src/b_alias.c b/src/b_alias.c
index efed4b5..62c2e5e 100644
--- a/src/b_alias.c
+++ b/src/b_alias.c
@@ -14,7 +14,7 @@
#include <stdint.h>
#include <stdlib.h>
#include <unistd.h>
-#ifdef linux
+#ifdef __linux__
# include <linux/limits.h>
#else
# include <limits.h>
diff --git a/src/b_alias_print.c b/src/b_alias_print.c
index aebd644..8fd1c5c 100644
--- a/src/b_alias_print.c
+++ b/src/b_alias_print.c
@@ -12,6 +12,11 @@
#include <libft.h>
#include <stdlib.h>
+#ifdef __linux__
+# include <linux/limits.h>
+#else
+# include <limits.h>
+#endif
#include "d_define.h"
#include "s_struct.h"
diff --git a/src/b_type.c b/src/b_type.c
index 622ca52..d01a0b4 100644
--- a/src/b_type.c
+++ b/src/b_type.c
@@ -15,7 +15,7 @@
#include <dirent.h>
#include <fcntl.h>
#include <unistd.h>
-#ifdef linux
+#ifdef __linux__
# include <linux/limits.h>
#else
# include <limits.h>
diff --git a/src/e_externs.c b/src/e_externs.c
index 8555cad..0490e82 100644
--- a/src/e_externs.c
+++ b/src/e_externs.c
@@ -17,7 +17,7 @@
#include <string.h>
#include <fcntl.h>
#include <unistd.h>
-#ifdef linux
+#ifdef __linux__
# include <linux/limits.h>
#else
# include <limits.h>
diff --git a/src/e_pipes.c b/src/e_pipes.c
index 312fa87..1fb6fcf 100644
--- a/src/e_pipes.c
+++ b/src/e_pipes.c
@@ -14,7 +14,7 @@
#include <libft.h>
#include <stdlib.h>
#include <stdint.h>
-#ifdef linux
+#ifdef __linux__
# include <linux/limits.h>
#else
# include <limits.h>
diff --git a/src/e_unshebanged.c b/src/e_unshebanged.c
index f88e19c..1e4e33c 100644
--- a/src/e_unshebanged.c
+++ b/src/e_unshebanged.c
@@ -13,7 +13,7 @@
#include <libft.h>
#include <stdlib.h>
#include <unistd.h>
-#ifdef linux
+#ifdef __linux__
# include <linux/limits.h>
#else
# include <limits.h>
diff --git a/src/m_init.c b/src/m_init.c
index 64f9096..797b0a6 100644
--- a/src/m_init.c
+++ b/src/m_init.c
@@ -12,7 +12,7 @@
#include <libft.h>
#include <stdlib.h>
-#ifdef linux
+#ifdef __linux__
# include <linux/limits.h>
#else
# include <limits.h>
diff --git a/src/s_struct.h b/src/s_struct.h
index 58aa155..5bf307d 100644
--- a/src/s_struct.h
+++ b/src/s_struct.h
@@ -15,7 +15,7 @@
# include <stdint.h>
# include <stddef.h>
-# ifdef linux
+# ifdef __linux__
# include <linux/limits.h>
# else
# include <limits.h>