net: cleanup #include directives
parent
bf97faf32a
commit
104d9a7c8a
|
@ -1,15 +1,13 @@
|
||||||
module net
|
module net
|
||||||
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <sys/socket.h>
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include <sys/un.h>
|
|
||||||
#include <sys/select.h>
|
#include <sys/select.h>
|
||||||
|
// inet.h is needed for inet_ntop on macos
|
||||||
#include <arpa/inet.h>
|
#include <arpa/inet.h>
|
||||||
#include <netinet/in.h>
|
|
||||||
#include <netdb.h>
|
#include <netdb.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
|
||||||
#flag solaris -lsocket
|
#flag solaris -lsocket
|
||||||
|
|
||||||
fn error_code() int {
|
fn error_code() int {
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
module unix
|
module unix
|
||||||
|
|
||||||
|
#include <sys/un.h>
|
||||||
|
|
||||||
// Select represents a select operation
|
// Select represents a select operation
|
||||||
enum Select {
|
enum Select {
|
||||||
read
|
read
|
||||||
|
|
Loading…
Reference in New Issue