Fix compilation warning/errors for OpenWrt
In lib-resultreader and Positioner.
This commit is contained in:
parent
f9fffd4a9e
commit
2a23e31a28
|
@ -41,6 +41,9 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
#define _GNU_SOURCE // for strndup()
|
||||||
|
|
||||||
|
|
||||||
#include "owlps-resultreader.h"
|
#include "owlps-resultreader.h"
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
|
@ -17,7 +17,7 @@ TESTSCXXFLAGS = -I$(TESTS_DIR) -I$(SRC_DIR) -I.
|
||||||
|
|
||||||
## Additional libraries ##
|
## Additional libraries ##
|
||||||
|
|
||||||
LDFLAGS += -lstdc++ -lm -lboost_program_options -lowlps
|
LDFLAGS += -lstdc++ -lm -lboost_program_options -pthread -lowlps
|
||||||
OS := $(shell uname)
|
OS := $(shell uname)
|
||||||
ifeq "$(OS)" "Linux"
|
ifeq "$(OS)" "Linux"
|
||||||
LDFLAGS += -lrt
|
LDFLAGS += -lrt
|
||||||
|
|
|
@ -46,6 +46,7 @@ class Measurement ;
|
||||||
|
|
||||||
#include <boost/tr1/unordered_map.hpp>
|
#include <boost/tr1/unordered_map.hpp>
|
||||||
#include <boost/algorithm/string/case_conv.hpp>
|
#include <boost/algorithm/string/case_conv.hpp>
|
||||||
|
#include <stdint.h> // <cstdint> is not C++ 98 compliant
|
||||||
|
|
||||||
/// Utilitary class
|
/// Utilitary class
|
||||||
class PosUtil
|
class PosUtil
|
||||||
|
|
Loading…
Reference in New Issue