]> git.proxmox.com Git - mirror_kronosnet.git/commitdiff
vty: add missing include and fix build
authorFabio M. Di Nitto <fdinitto@redhat.com>
Wed, 23 Mar 2011 05:10:43 +0000 (06:10 +0100)
committerFabio M. Di Nitto <fdinitto@redhat.com>
Wed, 23 Mar 2011 05:10:43 +0000 (06:10 +0100)
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
libvty/vty.c

index 07576b32cbcb533991465c9f1989b4e04692ed8e..72b8ab7989064e9b104367cf2bbbf953471c8242 100644 (file)
@@ -3,6 +3,7 @@
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <unistd.h>
+#include <fcntl.h>
 #include <arpa/inet.h>
 #include <string.h>
 #include <errno.h>
@@ -60,7 +61,7 @@ static int knet_vty_init_listener(const char *ip_addr, const char *port)
                goto out_clean;
        }
        sockflags |= FD_CLOEXEC;
-       if (fcntl(sockfd, F_SETFD, sockflags) < 0)
+       if (fcntl(sockfd, F_SETFD, sockflags) < 0) {
                err = -1;
                goto out_clean;
        }