Bläddra i källkod

Fix compile errors in qdevice and vqsim on FreeBSD

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

Signed-off-by: Bin Liu <bliu@suse.com>
Reviewed-by: Jan Friesse <jfriesse@redhat.com>
Bin Liu 8 år sedan
förälder
incheckning
3252307de3
5 ändrade filer med 8 tillägg och 1 borttagningar
  1. 1 0
      qdevices/process-list.h
  2. 2 0
      qdevices/qdevice-cmap.h
  3. 3 0
      qdevices/qdevice-config.h
  4. 1 0
      qdevices/unix-socket.h
  5. 1 1
      vqsim/vqmain.c

+ 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>
 

+ 1 - 1
vqsim/vqmain.c

@@ -2,7 +2,7 @@
 
 #include <stdio.h>
 #include <sys/types.h>
-#include <wait.h>
+#include <sys/wait.h>
 #include <qb/qblog.h>
 #include <qb/qbloop.h>
 #include <sys/poll.h>