summaryrefslogtreecommitdiffstats
path: root/src/b_sqb_file.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-10-12 18:46:41 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-10-12 18:46:41 +0200
commit39b1f731cafa693b2ba5dea98c18f505c981d01b (patch)
tree5ad7c1182b18ed1cbd8b01a60b2ad9f91e654e5d /src/b_sqb_file.c
parentCompatibility update (diff)
download42-minishell-39b1f731cafa693b2ba5dea98c18f505c981d01b.tar.gz
42-minishell-39b1f731cafa693b2ba5dea98c18f505c981d01b.tar.bz2
42-minishell-39b1f731cafa693b2ba5dea98c18f505c981d01b.tar.xz
42-minishell-39b1f731cafa693b2ba5dea98c18f505c981d01b.tar.zst
42-minishell-39b1f731cafa693b2ba5dea98c18f505c981d01b.zip
compat
Diffstat (limited to 'src/b_sqb_file.c')
-rw-r--r--src/b_sqb_file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/b_sqb_file.c b/src/b_sqb_file.c
index b3c726a..a80cf4b 100644
--- a/src/b_sqb_file.c
+++ b/src/b_sqb_file.c
@@ -10,8 +10,6 @@
/* */
/* ************************************************************************** */
-#define _POSIX_C_SOURCE 200112L
-
#include <sys/types.h>
#include <sys/stat.h>
#include <libft.h>
@@ -21,6 +19,8 @@
#include "d_define.h"
+#define _POSIX_C_SOURCE 200112L
+
static t_bool b_file_tests(uint8_t id, const char path[], struct stat sb)
{
if (id == B_ID_SQB_B && S_ISBLK(sb.st_mode) == 1)