Changed dependency to bsdsocket.library
This commit is contained in:
parent
204a912788
commit
496949bb1a
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue