summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rw-r--r--src/b_sqb_file.c2
-rw-r--r--src/m_prompt_seq.c2
3 files changed, 2 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 4df2846..ced56f2 100644
--- a/Makefile
+++ b/Makefile
@@ -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];