summaryrefslogtreecommitdiffstats
path: root/src/util
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:02:49 +0200
commit9d54fa809d7bf1b647e50081958ef33456c591bf (patch)
tree2ff770088064a6473de0e7ff058a3190f582a905 /src/util
parent1bf580d3c6bbcfcff0c3dfd348e7c0a16d9d3d9e (diff)
downloadsssd-9d54fa809d7bf1b647e50081958ef33456c591bf.tar.gz
sssd-9d54fa809d7bf1b647e50081958ef33456c591bf.tar.xz
sssd-9d54fa809d7bf1b647e50081958ef33456c591bf.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.
Diffstat (limited to 'src/util')
-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 63cffe85e..480296766 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"