From b2513ff11934ae365cf58043b1dbb167e7ecfb7f Mon Sep 17 00:00:00 2001 From: Santiago Gimeno Date: Thu, 6 Nov 2014 10:58:24 +0100 Subject: [PATCH] src: add unistd.h to fix sleep compilation error - Fix a couple of warnings. --- src/pcsclite.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/pcsclite.cpp b/src/pcsclite.cpp index 007cd09..97af19c 100644 --- a/src/pcsclite.cpp +++ b/src/pcsclite.cpp @@ -1,3 +1,4 @@ +#include #include "pcsclite.h" #include "common.h" @@ -20,9 +21,9 @@ void PCSCLite::init(Handle target) { target->Set(NanNew("PCSCLite"), tpl->GetFunction()); } -PCSCLite::PCSCLite(): m_card_context(NULL), +PCSCLite::PCSCLite(): m_card_context(0), m_card_reader_state(), - m_status_thread(NULL), + m_status_thread(0), m_closing(false) { pthread_mutex_init(&m_mutex, NULL);