summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/b_sqb_file.c4
-rw-r--r--src/m_prompt_seq.c2
2 files changed, 4 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)
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];