curieimu.hpp: Add pthread include to lib header

CurieIMU example includes curieimu.hpp, which uses pthread symbols but
does not include pthreads.h, and thus fails building.  The library
builds successfully because the source file includes the pthread
header before including curieimu.hpp.

    * Moved pthread.h include from src to header.

Signed-off-by: Noel Eck <noel.eck@intel.com>
This commit is contained in:
Noel Eck 2017-10-12 10:51:09 -07:00
parent 40084ea651
commit 4037ec517c
2 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,6 @@
#include <stdexcept>
#include <unistd.h>
#include <stdlib.h>
#include <pthread.h>
#include "curieimu.hpp"

View File

@ -26,6 +26,7 @@
#pragma once
#include <mraa/firmata.h>
#include <pthread.h>
#include <queue>
#define FIRMATA_START_SYSEX 0xF0