Index: uspace/lib/http/src/request.c
===================================================================
--- uspace/lib/http/src/request.c	(revision 4d4f656ffc62186811fa02970d77df9e60512a39)
+++ uspace/lib/http/src/request.c	(revision fe97c5e008b48a42440c0aa06001d6f85d4346fe)
@@ -34,4 +34,5 @@
  */
 
+#include <errno.h>
 #include <stdio.h>
 #include <stdlib.h>
@@ -39,5 +40,5 @@
 #include <macros.h>
 
-#include <net/socket.h>
+#include <inet/tcp.h>
 
 #include <http/http.h>
@@ -149,5 +150,5 @@
 		return rc;
 	
-	rc = send(http->conn_sd, buf, buf_size, 0);
+	rc = tcp_conn_send(http->conn, buf, buf_size);
 	free(buf);
 	
