1
0
mirror of git://projects.qi-hardware.com/openwrt-packages.git synced 2024-11-17 00:47:31 +02:00
openwrt-packages/sdcv/patches/001-fix-compile-error.patch

30 lines
575 B
Diff
Raw Normal View History

diff --git a/src/lib/mapfile.hpp b/src/lib/mapfile.hpp
index eedb1bc..300849a 100644
--- a/src/lib/mapfile.hpp
+++ b/src/lib/mapfile.hpp
@@ -18,9 +18,9 @@
class MapFile {
public:
MapFile(void) :
- data(NULL),
+ data(NULL)
#ifdef HAVE_MMAP
- mmap_fd(-1)
+ , mmap_fd(-1)
#elif defined(_WIN32)
hFile(0),
hFileMap(0)
diff --git a/src/utils.cpp b/src/utils.cpp
index 5e8d562..2e3e55e 100644
--- a/src/utils.cpp
+++ b/src/utils.cpp
@@ -24,6 +24,8 @@
#include <glib.h>
#include <glib/gi18n.h>
+#include <stdio.h>
+#include <stdlib.h>
#include "utils.hpp"