From 39b1f731cafa693b2ba5dea98c18f505c981d01b Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Mon, 12 Oct 2020 18:46:41 +0200 Subject: compat --- src/b_sqb_file.c | 4 ++-- src/m_prompt_seq.c | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'src') 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 #include #include @@ -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) diff --git a/src/m_prompt_seq.c b/src/m_prompt_seq.c index 01c0ea4..1f487a5 100644 --- a/src/m_prompt_seq.c +++ b/src/m_prompt_seq.c @@ -19,6 +19,8 @@ #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]; -- cgit v1.2.3