Fix compilation warning/errors for OpenWrt

In lib-resultreader and Positioner.
This commit is contained in:
Matteo Cypriani 2013-04-24 13:34:34 -04:00
parent f9fffd4a9e
commit 2a23e31a28
3 changed files with 5 additions and 1 deletions

View File

@ -41,6 +41,9 @@
*/
#define _GNU_SOURCE // for strndup()
#include "owlps-resultreader.h"
#include <string.h>

View File

@ -17,7 +17,7 @@ TESTSCXXFLAGS = -I$(TESTS_DIR) -I$(SRC_DIR) -I.
## Additional libraries ##
LDFLAGS += -lstdc++ -lm -lboost_program_options -lowlps
LDFLAGS += -lstdc++ -lm -lboost_program_options -pthread -lowlps
OS := $(shell uname)
ifeq "$(OS)" "Linux"
LDFLAGS += -lrt

View File

@ -46,6 +46,7 @@ class Measurement ;
#include <boost/tr1/unordered_map.hpp>
#include <boost/algorithm/string/case_conv.hpp>
#include <stdint.h> // <cstdint> is not C++ 98 compliant
/// Utilitary class
class PosUtil