Forráskód Böngészése

Fix compile errors in qdevice on FreeBSD

Some header files need to be specified on FreeBSD, otherwise there
are compile errors. These files does not affect Linux compilation.

(backported from master 3252307de35480ced714eab1ff02e92c0b36ca04)

Signed-off-by: Bin Liu <bliu@suse.com>
Reviewed-by: Jan Friesse <jfriesse@redhat.com>
Bin Liu 8 éve
szülő
commit
9182477b4f

+ 1 - 0
qdevices/process-list.h

@@ -35,6 +35,7 @@
 #ifndef _PROCESS_LIST_H_
 #define _PROCESS_LIST_H_
 
+#include <signal.h>
 #include <sys/queue.h>
 
 #include "dynar.h"

+ 2 - 0
qdevices/qdevice-cmap.h

@@ -37,6 +37,8 @@
 
 #include <cmap.h>
 
+#include <arpa/inet.h>
+#include <netinet/in.h>
 #include "node-list.h"
 #include "qdevice-instance.h"
 

+ 3 - 0
qdevices/qdevice-config.h

@@ -40,6 +40,9 @@
 #include <qb/qbdefs.h>
 #include <qb/qblog.h>
 
+#include <sys/types.h>
+#include <sys/wait.h>
+#include <string.h>
 #include "qdevice-heuristics-mode.h"
 
 #ifdef __cplusplus

+ 1 - 0
qdevices/unix-socket.h

@@ -35,6 +35,7 @@
 #ifndef _UNIX_SOCKET_H_
 #define _UNIX_SOCKET_H_
 
+#include <string.h>
 #include <sys/types.h>
 #include <inttypes.h>