diff options
| author | 2024-11-26 16:18:41 -0500 | |
|---|---|---|
| committer | 2024-11-26 16:21:16 -0500 | |
| commit | 62b75446102ca32b23a78188b0aca8fe31d8b2c0 (patch) | |
| tree | 383a43e744a9bbb1d025e784bbb369e5f8ae8d7f /src/socket | |
| parent | b0878176dd3e0a3a9314025fa832effe25efa9b4 (diff) | |
| download | libnaunet-62b75446102ca32b23a78188b0aca8fe31d8b2c0.tar.gz libnaunet-62b75446102ca32b23a78188b0aca8fe31d8b2c0.tar.bz2 libnaunet-62b75446102ca32b23a78188b0aca8fe31d8b2c0.zip | |
Track file lock and unlock
Signed-off-by: Andrew Opalach <andrew@akon.city>
Diffstat (limited to 'src/socket')
| -rw-r--r-- | src/socket/socket.h | 5 | ||||
| -rw-r--r-- | src/socket/socket_linux.c | 3 |
2 files changed, 3 insertions, 5 deletions
diff --git a/src/socket/socket.h b/src/socket/socket.h index 36b101a..cf8953c 100644 --- a/src/socket/socket.h +++ b/src/socket/socket.h @@ -5,11 +5,12 @@ #ifndef _WIN32 #include <unistd.h> -#include <sys/socket.h> #include <sys/un.h> #include <sys/eventfd.h> -#include <netinet/in.h> #include <arpa/inet.h> +#include <sys/fcntl.h> +#include <netinet/tcp.h> +#include <netdb.h> #include <poll.h> #else #include "../winwrap.h" diff --git a/src/socket/socket_linux.c b/src/socket/socket_linux.c index b89aac6..9f794bb 100644 --- a/src/socket/socket_linux.c +++ b/src/socket/socket_linux.c @@ -1,7 +1,4 @@ #include <al/log.h> -#include <sys/fcntl.h> -#include <netinet/tcp.h> -#include <netdb.h> #include "../util/error.h" |