mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2025-10-30 08:01:01 +00:00
Due to my compile & launch scripts, I was silently ignoring warnings this whole time. I've fixed my process, and gone back to fixed all of the warnings I could (even outside of my code).
20 lines
457 B
C
20 lines
457 B
C
#ifndef SOCKET_LINUX_H
|
|
#define SOCKET_LINUX_H
|
|
|
|
#include <errno.h>
|
|
#include <netinet/in.h>
|
|
#include <arpa/inet.h>
|
|
#include <sys/socket.h>
|
|
#include <fcntl.h>
|
|
|
|
#define SOCKET unsigned int
|
|
#define INVALID_SOCKET (unsigned int)(-1)
|
|
#define SOCKET_LAST_ERROR errno
|
|
#define NO_ERROR (0)
|
|
#define SOCKADDR struct sockaddr
|
|
#define SOCKET_ERROR (-1)
|
|
#define closesocket(fd) close(fd)
|
|
#define SOCKET_EWOULDBLOCK EWOULDBLOCK
|
|
#define SOCKET_ECONNRESET ECONNRESET
|
|
|
|
#endif
|