This commit is contained in:
UnknownShadow200 2018-11-11 02:18:55 +11:00
parent 34cf16ac33
commit e192c0a8eb
2 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,5 @@
CC=gcc
LIBS=-lGL -lcurl -lopenal -lpthread -lX11 -lm
LIBS=-lGL -lcurl -lopenal -lpthread -lX11 -lm -ldl
CFLAGS=-g -w -no-pie -rdynamic
SOURCES=$(wildcard *.c)
OBJECTS=$(patsubst %.c, %.o, $(SOURCES))

View File

@ -62,6 +62,7 @@ ReturnCode ReturnCode_SocketWouldBlock = WSAEWOULDBLOCK;
#include <dirent.h>
#include <fcntl.h>
#include <pthread.h>
#include <dlfcn.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <sys/socket.h>
@ -1902,7 +1903,7 @@ ReturnCode Platform_LoadLibrary(const String* path, void** lib) {
}
ReturnCode Platform_GetSymbol(void* lib, const char* name, void** symbol) {
*symbol = GetProcAddress(lib, symbol);
*symbol = GetProcAddress(lib, name);
return Win_Return(*symbol);
}
#endif