diff options
author | Tharre <tharre3@gmail.com> | 2014-07-31 21:23:44 +0200 |
---|---|---|
committer | Tharre <tharre3@gmail.com> | 2014-07-31 21:23:44 +0200 |
commit | 83789a68173054b66a00e4d2e33308f1432333a2 (patch) | |
tree | 2f69b55be053c8edbdf11fdac923ac714026d2b1 /src | |
parent | 97d3f7a5055ec0da6923a5c85d2b2fc7e7dd782c (diff) | |
download | redo-83789a68173054b66a00e4d2e33308f1432333a2.tar.gz redo-83789a68173054b66a00e4d2e33308f1432333a2.tar.xz redo-83789a68173054b66a00e4d2e33308f1432333a2.zip |
Add _XOPEN_SOURCE to include the right headers
Diffstat (limited to 'src')
-rw-r--r-- | src/build.c | 4 | ||||
-rw-r--r-- | src/redo.c | 3 |
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"; @@ -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 */ |