diff --git a/src/Makefile b/src/Makefile index 9c38d28..4426fef 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,7 +1,7 @@ USEDBIXX=1 USECPPDB=1 -BASE_LIBS=-lgcrypt -lboost_program_options +BASE_LIBS=-lgcrypt -lboost_program_options -lgpg-error BASE_CFLAGS=-c -g -O2 -Wall -std=c++0x -include Makefile.local diff --git a/src/oastat.cpp b/src/oastat.cpp index f22ab6e..8a82a58 100644 --- a/src/oastat.cpp +++ b/src/oastat.cpp @@ -25,7 +25,9 @@ http://code.google.com/p/oastat/ #include #include +#ifndef _WIN32 #include "pstream.h" // +#endif #include #include #include @@ -295,10 +297,14 @@ int main (int argc, const char* argv[]) } if (filename.length()>0) { +#ifndef _WIN32 if (useTail) { redi::ipstream in("tail -s 1 -f "+filename); processStdIn(in,commands); - } else { + } + else +#endif + { ifstream in(filename.c_str(),ifstream::in); processStdIn(in,commands); }