[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: dlopen question...
I said:
> The cleanest way I know of, to deal with this, is something along the
> lines of the following, because from what I know, all compilers define
> __ELF__ on ELF systems (or should, at least)
>
> #ifndef __ELF__
> #define dlsym(h,s) dlsym(h, "_" s)
> #endif
Actually I just checked and Solaris does not define __ELF__... so I
guess not all systems do.
Next best thing is I guess, #if defined(__OpenBSD__) && !defined(__ELF__)
but the cleanliness factor keeps dropping (and you -will- run into this
on other systems too)