when i type in linux MAKE i get this error: and cant run the server with ./theforgottenserver
otserv.cpp: In function 'std::string getGlobalIP()':
otserv.cpp:252: error: 'WSADATA' was not declared in this scope
otserv.cpp:252: error: expected ';' before 'wsaData'
otserv.cpp:254: error: 'MAKEWORD' was not declared in this scope
otserv.cpp:254: error: 'wsaData' was not declared in this scope
otserv.cpp:254: error: 'WSAStartup' was not declared in this scope
otserv.cpp:257: error: 'SOCKET' was not declared in this scope
otserv.cpp:257: error: expected ';' before 's'
otserv.cpp:258: error: 'HOSTENT' was not declared in this scope
otserv.cpp:258: error: 'host' was not declared in this scope
otserv.cpp:260: error: 'SOCKADDR_IN' was not declared in this scope
otserv.cpp:260: error: expected ';' before 'sin'
otserv.cpp:261: error: ISO C++ forbids applying 'sizeof' to an expression of function type
otserv.cpp:261: error: invalid conversion from 'double (*)(double)throw ()' to 'void*'
otserv.cpp:261: error: initializing argument 1 of 'void* memset(void*, int, size_t)'
otserv.cpp:263: error: request for member 'sin_family' in 'sin', which is of non-class type 'double(double)throw ()'
otserv.cpp:264: error: request for member 'sin_addr' in 'sin', which is of non-class type 'double(double)throw ()'
otserv.cpp:265: error: request for member 'sin_port' in 'sin', which is of non-class type 'double(double)throw ()'
otserv.cpp:267: error: 's' was not declared in this scope
otserv.cpp:267: error: ISO C++ forbids applying 'sizeof' to an expression of function type
otserv.cpp:267: error: 'SOCKET_ERROR' was not declared in this scope
otserv.cpp:271: error: 'WSAGetLastError' was not declared in this scope
otserv.cpp:281: warning: comparison between signed and unsigned integer expressions
otserv.cpp:285: error: 'closesocket' was not declared in this scope
otserv.cpp:278: warning: unused variable 'iplength'
otserv.cpp:290: error: 'WSAGetLastError' was not declared in this scope
help plx?