Changed dependency to bsdsocket.library

This commit is contained in:
llsth 2015-03-17 20:16:07 +01:00
parent 204a912788
commit 496949bb1a
1 changed files with 3 additions and 1 deletions

View File

@ -167,12 +167,12 @@ static void init_libs(struct ntimedargs *args)
BattClockBase = OpenResource(BATTCLOCK_NAME);
}
#ifdef AROS
if(!(SocketBase = OpenLibrary(BSDLIB_NAME, BSDLIB_REV))) {
Put(NULL, OCX_DIAG, "No TCP/IP Stack running.\n");
exit(2);
}
#ifdef AROS
if(SocketBaseTags(SBTM_SETVAL(SBTC_ERRNOPTR(sizeof(errno))), (IPTR)&errno,
SBTM_SETVAL(SBTC_HERRNOLONGPTR), (IPTR)&h_errno, TAG_DONE)) {
Put(NULL, OCX_DIAG, "Error initializing bsdsocket.\n");
@ -271,10 +271,12 @@ static void clean_exit()
UtilityBase = NULL;
}
#ifdef AROS
if (SocketBase != NULL) {
CloseLibrary(SocketBase);
SocketBase = NULL;
}
#endif
if (rdargs) {
FreeArgs(rdargs);