1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-02 22:46:30 +02:00

Remove lockfiles and other changes

This commit is contained in:
Werner Koch 2000-12-28 15:49:42 +00:00
parent d188c1c37f
commit 94c45b7ff3
8 changed files with 38 additions and 5 deletions

View file

@ -67,6 +67,25 @@ dlsym(void *handle, char *name)
}
#endif /*HAVE_DL_SHL_LOAD*/
#ifdef __MINGW32__
#warning Needs some more work. Based on Disastry@saiknes.lv patch.
#define dlopen(PATHNAME,MODE) ((void *)LoadLibrary(PATHNAME))
#define dlclose(HANDLE) FreeLibrary(HANDLE)
char *dlerror(void)
{
static char dlerrstr[10];
int err=GetLastError();
if (!err)
return NULL;
sprintf(dlerrstr, "%u", err);
return dlerrstr;
}
#define dlsym(HANDLE,NAME) GetProcAddress(HANDLE,NAME)
#endif /*__MINGW32__*/
typedef struct ext_list {