src: add unistd.h to fix sleep compilation error
- Fix a couple of warnings.
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
#include <unistd.h>
|
||||||
#include "pcsclite.h"
|
#include "pcsclite.h"
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
|
|
||||||
@@ -20,9 +21,9 @@ void PCSCLite::init(Handle<Object> target) {
|
|||||||
target->Set(NanNew("PCSCLite"), tpl->GetFunction());
|
target->Set(NanNew("PCSCLite"), tpl->GetFunction());
|
||||||
}
|
}
|
||||||
|
|
||||||
PCSCLite::PCSCLite(): m_card_context(NULL),
|
PCSCLite::PCSCLite(): m_card_context(0),
|
||||||
m_card_reader_state(),
|
m_card_reader_state(),
|
||||||
m_status_thread(NULL),
|
m_status_thread(0),
|
||||||
m_closing(false) {
|
m_closing(false) {
|
||||||
|
|
||||||
pthread_mutex_init(&m_mutex, NULL);
|
pthread_mutex_init(&m_mutex, NULL);
|
||||||
|
|||||||
Reference in New Issue
Block a user