From 892803f21e0dd2d3c428b0c3a5407b104fb38ac9 Mon Sep 17 00:00:00 2001 From: John Denker Date: Sun, 27 Apr 2014 16:40:42 -0700 Subject: fix more bitrot --- tools/hi-test.c | 3 +++ tools/libltgrey.c | 2 +- tools/sepofra.c | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) 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 /* getpid() */ +#include /* read(), getpid() */ + #include #include #include 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 #include +#include /* gethostname */ #include "sepofra.h" #include "utils.h" /* for trim() */ -- cgit v1.2.3