]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - http_recv.c
Merge commit 'remotes/fml/master'
[paraslash.git] / http_recv.c
index f82924d9cfd728c83f4bed516fc4e84dbe21e139..0a460adff4009428e8d457a30ff2426e4cc93deb 100644 (file)
@@ -6,6 +6,9 @@
 
 /** \file http_recv.c paraslash's http receiver */
 
+#include <sys/types.h>
+#include <dirent.h>
+
 #include "para.h"
 #include "error.h"
 #include "http.h"
@@ -187,7 +190,7 @@ static int http_recv_open(struct receiver_node *rn)
                close(phd->fd);
                goto err_out;
        }
-       mark_fd_nonblock(phd->fd);
+       mark_fd_nonblocking(phd->fd);
        phd->status = HTTP_CONNECTED;
        return 1;
 err_out: