net: cleanup #include directives

pull/10167/head
Delyan Angelov 2021-05-22 10:53:19 +03:00
parent bf97faf32a
commit 104d9a7c8a
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
2 changed files with 4 additions and 4 deletions

View File

@ -1,15 +1,13 @@
module net
#include <unistd.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <sys/un.h>
#include <sys/select.h>
// inet.h is needed for inet_ntop on macos
#include <arpa/inet.h>
#include <netinet/in.h>
#include <netdb.h>
#include <errno.h>
#include <fcntl.h>
#flag solaris -lsocket
fn error_code() int {

View File

@ -1,5 +1,7 @@
module unix
#include <sys/un.h>
// Select represents a select operation
enum Select {
read