Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ngscopeclient/logtools
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: c7138bb0c54f
Choose a base ref
...
head repository: ngscopeclient/logtools
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: ee5a30b01f7a
Choose a head ref
  • 2 commits
  • 1 file changed
  • 1 contributor

Commits on Mar 3, 2017

  1. Added missing include

    azonenberg committed Mar 3, 2017
    Copy the full SHA
    dc588ae View commit details
  2. Copy the full SHA
    ee5a30b View commit details
Showing with 2 additions and 1 deletion.
  1. +2 −1 STDLogSink.cpp
3 changes: 2 additions & 1 deletion STDLogSink.cpp
Original file line number Diff line number Diff line change
@@ -31,6 +31,7 @@
#include <windows.h>
#else
#include <sys/ioctl.h>
#include <unistd.h>
#endif

using namespace std;
@@ -45,7 +46,7 @@ STDLogSink::STDLogSink(Severity min_severity)
{
//Get the current display terminal width
#ifndef _WIN32
if(isatty(stdout))
if(isatty(STDOUT_FILENO))
{
struct winsize w;
ioctl(0, TIOCGWINSZ, &w);