mirror of https://github.com/ClassiCube/ClassiCube
NDS: Fix compiling and use own folder
This commit is contained in:
parent
f68f7ffaf0
commit
da0b7c8484
2
Makefile
2
Makefile
|
|
@ -268,7 +268,7 @@ n64:
|
|||
gba:
|
||||
$(MAKE) -f misc/gba/Makefile
|
||||
ds:
|
||||
$(MAKE) -f misc/ds/Makefile
|
||||
$(MAKE) -f misc/nds/Makefile
|
||||
3ds:
|
||||
$(MAKE) -f misc/3ds/Makefile
|
||||
gamecube:
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ export BLOCKSDSEXT ?= /opt/wonderful/thirdparty/blocksds/external
|
|||
export WONDERFUL_TOOLCHAIN ?= /opt/wonderful
|
||||
ARM_NONE_EABI_PATH ?= $(WONDERFUL_TOOLCHAIN)/toolchain/gcc-arm-none-eabi/bin/
|
||||
|
||||
SOURCEDIRS := src
|
||||
SOURCEDIRS := src src/nds
|
||||
INCLUDEDIRS :=
|
||||
DSIWIFI := third_party/dsiwifi
|
||||
|
||||
|
Before Width: | Height: | Size: 4.1 KiB After Width: | Height: | Size: 4.1 KiB |
|
|
@ -546,13 +546,8 @@ cc_result Socket_CheckWritable(cc_socket s, cc_bool* writable) {
|
|||
if (res || *writable) return res;
|
||||
|
||||
/* https://stackoverflow.com/questions/29479953/so-error-value-after-successful-socket-operation */
|
||||
#ifdef BUILD_DSI
|
||||
socklen_t resultSize = sizeof(socklen_t);
|
||||
getsockopt(s, SOL_SOCKET, SO_ERROR, &res, &resultSize);
|
||||
#else
|
||||
int resultSize = sizeof(int);
|
||||
getsockopt(s, SOL_SOCKET, SO_ERROR, &res, &resultSize);
|
||||
#endif
|
||||
return res;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue