Browse Source

FIX: missing include files due to newer compilers

ps 6 years ago
parent
commit
df573130df
5 changed files with 7 additions and 0 deletions
  1. 2 0
      src/Configfile.cpp.in
  2. 1 0
      src/Database.cpp
  3. 1 0
      src/Database.h
  4. 1 0
      src/Socket.cpp
  5. 2 0
      src/Utils.cpp

+ 2 - 0
src/Configfile.cpp.in

@@ -19,6 +19,8 @@
  */
 #include "Configfile.h"
 
+#include <unistd.h>
+
 extern LOGGER_CLASS hermes_log;
 
 /**

+ 1 - 0
src/Database.cpp

@@ -19,6 +19,7 @@
  */
 #include "Database.h"
 
+#include <unistd.h>
 extern LOGGER_CLASS hermes_log;
 
 void Database::setDatabaseFile(string p_dbfile)

+ 1 - 0
src/Database.h

@@ -22,6 +22,7 @@
 
 #include "hermes.h"
 
+#include <stdlib.h>
 #include <iostream>
 #include <string>
 #include <sqlite3.h>

+ 1 - 0
src/Socket.cpp

@@ -18,6 +18,7 @@
  * @author Juan José Gutiérrez de Quevedo <juanjo@gutierrezdequevedo.com>
  */
 #include "Socket.h"
+#include <unistd.h>
 
 int Socket::created_sockets=0;
 

+ 2 - 0
src/Utils.cpp

@@ -19,6 +19,8 @@
  */
 #include "Utils.h"
 
+#include <unistd.h>
+
 extern Configfile cfg;
 extern LOGGER_CLASS hermes_log;