Skip to content

Fixed compilation errors on Linux.#9

Open
sbzappa wants to merge 1 commit into
usb2snes:mainfrom
sbzappa:fix-for-linux
Open

Fixed compilation errors on Linux.#9
sbzappa wants to merge 1 commit into
usb2snes:mainfrom
sbzappa:fix-for-linux

Conversation

@sbzappa
Copy link
Copy Markdown

@sbzappa sbzappa commented Sep 9, 2023

I fixed some errors I encountered while compiling snes9x-emunwa on Linux.
I did not test this yet with Bsnes-plus, but I'm guessing they would have the same error if type SOCKET has never been defined for *nix.

I also did the following on the main branch snes9x-nwaccess:

--- a/emu-nwaccess/snes9x-nwaccess.cpp
+++ b/emu-nwaccess/snes9x-nwaccess.cpp
@@ -33,10 +33,6 @@
 #define INVALID_SOCKET -1
 #define SOCKET_ERROR -1
 #define closesocket(s) close(s)
-typedef int SOCKET;
-typedef struct sockaddr_in SOCKADDR_IN;
-typedef struct sockaddr SOCKADDR;
-typedef struct in_addr IN_ADDR;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant