summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Denker <jsd@av8n.com>2014-04-27 23:40:42 (GMT)
committerJohn Denker <jsd@av8n.com>2014-04-27 23:59:39 (GMT)
commit892803f21e0dd2d3c428b0c3a5407b104fb38ac9 (patch)
tree93afbe1db8ee5d220ba745871ecf0115ffdf178e
parent74091a532dc0fec6a40724423359a0a9774793f5 (diff)
fix more bitrot
-rw-r--r--tools/hi-test.c3
-rw-r--r--tools/libltgrey.c2
-rw-r--r--tools/sepofra.c1
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() */