Changeset 347 in Main for trunk/Server/module.c


Ignore:
Timestamp:
Oct 16, 2024, 1:33:28 AM (4 weeks ago)
Author:
Nishi
Message:

does not really work

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Server/module.c

    r339 r347  
    3333#include <os2.h>
    3434#elif defined(__NETWARE__)
    35 #include <nwadv.h>
    36 #include <nwthread.h>
     35#include <dlfcn.h>
    3736#else
    3837#include <windows.h>
     
    6059        lib = (void*)mod;
    6160#elif defined(__NETWARE__)
    62         *hnd = FindNLMHandle(path);
    63         lib = (void*)hnd;
     61        lib = dlopen(path, RTLD_LAZY);
    6462#else
    6563        lib = LoadLibraryA(path);
     
    8785        return ret;
    8886#elif defined(__NETWARE__)
    89         return ImportSymbol(*(unsigned int*)mod, sym);
     87        return dlsym(mod, sym);
    9088#else
    9189        return GetProcAddress(mod, sym);
Note: See TracChangeset for help on using the changeset viewer.