diff options
-rw-r--r-- | tools/hi-test.c | 3 | ||||
-rw-r--r-- | tools/libltgrey.c | 2 | ||||
-rw-r--r-- | tools/sepofra.c | 1 |
3 files changed, 5 insertions, 1 deletions
diff --git a/tools/hi-test.c b/tools/hi-test.c index cd0152c..85825e5 100644 --- a/tools/hi-test.c +++ b/tools/hi-test.c @@ -1,4 +1,7 @@ +#include <sys/types.h> /* getpid() */ +#include <unistd.h> /* read(), getpid() */ + #include <iostream> #include <stdlib.h> #include <string> diff --git a/tools/libltgrey.c b/tools/libltgrey.c index 0538d5c..3b8379d 100644 --- a/tools/libltgrey.c +++ b/tools/libltgrey.c @@ -424,7 +424,7 @@ void whatsit::scan_box(const boxer mybox, const int copies){ if (is_directory(mydir)) { for (directory_iterator itr(mydir); itr!=directory_iterator(); ++itr) { - string basename = itr->path().filename(); + string basename = itr->path().filename().string(); if (is_regular_file(itr->status())) { if (prefix(mybox.prefix, basename)) { for (int ii = 0; ii < copies; ii++) diff --git a/tools/sepofra.c b/tools/sepofra.c index 7ee9c8a..7c50edd 100644 --- a/tools/sepofra.c +++ b/tools/sepofra.c @@ -1,6 +1,7 @@ #include <iostream> #include <sstream> +#include <unistd.h> /* gethostname */ #include "sepofra.h" #include "utils.h" /* for trim() */ |