diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-10-12 18:47:45 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-10-12 18:47:45 +0200 |
commit | ed62166664f62b1ff8a8d972571c00a832acd24e (patch) | |
tree | 5d8c4347d36dd5d3d1586561aac7d2fa9fe5edfb | |
parent | compat (diff) | |
download | 42-minishell-ed62166664f62b1ff8a8d972571c00a832acd24e.tar.gz 42-minishell-ed62166664f62b1ff8a8d972571c00a832acd24e.tar.bz2 42-minishell-ed62166664f62b1ff8a8d972571c00a832acd24e.tar.xz 42-minishell-ed62166664f62b1ff8a8d972571c00a832acd24e.tar.zst 42-minishell-ed62166664f62b1ff8a8d972571c00a832acd24e.zip |
Compat fix
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | src/b_sqb_file.c | 2 | ||||
-rw-r--r-- | src/m_prompt_seq.c | 2 |
3 files changed, 2 insertions, 4 deletions
@@ -125,6 +125,8 @@ CFLAGS += -Wextra CFLAGS += -Werror CFLAGS += -pedantic #------------------------------------------------------------------------------# +CDEFS = -D_POSIX_C_SOURCE=200112L +#------------------------------------------------------------------------------# LDFLAGS = -L${LFT_DIR} LDFLAGS += -lft #==============================================================================# diff --git a/src/b_sqb_file.c b/src/b_sqb_file.c index a80cf4b..a853b81 100644 --- a/src/b_sqb_file.c +++ b/src/b_sqb_file.c @@ -19,8 +19,6 @@ #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) diff --git a/src/m_prompt_seq.c b/src/m_prompt_seq.c index 1f487a5..01c0ea4 100644 --- a/src/m_prompt_seq.c +++ b/src/m_prompt_seq.c @@ -19,8 +19,6 @@ #include "s_struct.h" #include "u_vars.h" -#define _POSIX_C_SOURCE 200112L - size_t m_prompt_sequences_again(char var[], size_t i, t_msh *msh) { char tmp[PATH_MAX]; |