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

Re: dlopen question...



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

Am Mittwoch, 4. Juni 2003 22:04 schrieb Peter Valchev:
> > 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
Well, that seems to be a solution which is quite easy to implement ;-)
I'll check that out.
Thanks ;-)

regards
Martin



- -- 
LibChipcard - http://www.libchipcard.de
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE+3lSwwcZBcYAOyGYRAreHAJwIHuu8Ox/ewHuJYzj4zEsbqkOjDACcCvcn
oPqx/0ilf34NzXl+MLPK2J4=
=KDm7
-----END PGP SIGNATURE-----