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


Ignore:
Timestamp:
Oct 16, 2024, 5:08:08 AM (4 weeks ago)
Author:
Nishi
Message:

fix some stuff

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Server/module.c

    r347 r349  
    3333#include <os2.h>
    3434#elif defined(__NETWARE__)
    35 #include <dlfcn.h>
     35#include <nwadv.h>
     36#include <nwthread.h>
    3637#else
    3738#include <windows.h>
     
    5960        lib = (void*)mod;
    6061#elif defined(__NETWARE__)
    61         lib = dlopen(path, RTLD_LAZY);
     62        *hnd = FindNLMHandle(path);
     63        lib = (void*)hnd;
    6264#else
    6365        lib = LoadLibraryA(path);
     
    8587        return ret;
    8688#elif defined(__NETWARE__)
    87         return dlsym(mod, sym);
     89        return ImportSymbol(*(unsigned int*)mod, sym);
    8890#else
    8991        return GetProcAddress(mod, sym);
Note: See TracChangeset for help on using the changeset viewer.