aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/build.c4
-rw-r--r--src/redo.c3
2 files changed, 2 insertions, 5 deletions
diff --git a/src/build.c b/src/build.c
index 4b9b960..73fc757 100644
--- a/src/build.c
+++ b/src/build.c
@@ -1,3 +1,4 @@
+#define _XOPEN_SOURCE 600
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
@@ -18,9 +19,6 @@
#define _FILENAME "build.c"
#include "dbg.h"
-/* TODO: for some reason these headers aren't included */
-char *realpath(const char *path, char *resolved_path);
-int setenv(const char *name, const char *value, int overwrite);
const char do_file_ext[] = ".do";
const char default_name[] = "default";
diff --git a/src/redo.c b/src/redo.c
index ef9a32e..69f9ade 100644
--- a/src/redo.c
+++ b/src/redo.c
@@ -1,3 +1,4 @@
+#define _XOPEN_SOURCE 600
#include <stdio.h>
#include <stdlib.h>
#include <sys/stat.h>
@@ -8,8 +9,6 @@
#include "util.h"
#include "dbg.h"
-/* TODO: for some reason this header is not included */
-int setenv(const char *name, const char *value, int overwrite);
int main(int argc, char *argv[]) {
/* create .redo directory */