The sys/uio.h header is only needed when building logging
code with journald support enabled. Conditionally include
it so that we avoid break on platforms which lack this
header.
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
-#include <sys/uio.h>
#if HAVE_SYSLOG_H
# include <syslog.h>
#endif
* htole64. */
#if HAVE_SYSLOG_H && defined(__linux__) && HAVE_DECL_HTOLE64
# define USE_JOURNALD 1
+# include <sys/uio.h>
#endif
#define VIR_FROM_THIS VIR_FROM_NONE