[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dlopen question...



> Ok, so I have to think about a way to detect an a.out system (I've seen a 
> message about that in the output of a configure script, so I guess there is a 
> simple autotonv macro to check for this).

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