summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2013-08-28 08:31:17 +0200
committerJakub Hrozek <jhrozek@redhat.com>2013-08-28 22:17:51 +0200
commite526b83c122265575a11b08bec5bb72a50ec7230 (patch)
treea532956a2155b86d4f477f3bd6859c5f2cbc83a9
parent8f209f0ef29ec7fe1fbb99c7c101946603bcd7bf (diff)
downloadsssd-e526b83c122265575a11b08bec5bb72a50ec7230.tar.gz
sssd-e526b83c122265575a11b08bec5bb72a50ec7230.tar.xz
sssd-e526b83c122265575a11b08bec5bb72a50ec7230.zip
UTIL: Explicitly include header file sys/socket.h
We use constant AF_INET6 in util.c, but we do not explicitly include header file sys/socket.h. This header file was indirectly incuded by another header file netdb.h (netdb.h -> netinet/in.h -> sys/socket.h), but other platform can have other dependencies among header files.
-rw-r--r--src/util/util.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util/util.c b/src/util/util.c
index ab980775a..bfe7b5a30 100644
--- a/src/util/util.c
+++ b/src/util/util.c
@@ -21,6 +21,7 @@
#include <ctype.h>
#include <netdb.h>
#include <poll.h>
+#include <sys/socket.h>
#include "talloc.h"
#include "util/util.h"