Include both virutil.h and unistd.h.
Signed-off-by: Ján Tomko <jtomko(a)redhat.com>
---
src/util/virportallocator.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/util/virportallocator.c b/src/util/virportallocator.c
index 285b8ddc45..2d34b617a6 100644
--- a/src/util/virportallocator.c
+++ b/src/util/virportallocator.c
@@ -21,6 +21,8 @@
#include <config.h>
+#include <unistd.h>
+
#include "virsocket.h"
#include "viralloc.h"
#include "virbitmap.h"
@@ -29,6 +31,7 @@
#include "virerror.h"
#include "virfile.h"
#include "virstring.h"
+#include "virutil.h"
#define VIR_FROM_THIS VIR_FROM_NONE
--
2.24.1