This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: weak symbols and glibc versioning


On Wednesday 06 January 2010 10:21:06 Ángel González wrote:
> I have a program for which I'd like to use "new" glibc features like
> accept4.
> Now, this program must work with an old glibc which doesn't provide
> those functions.

use a function pointer and during init, call dlopen() to search for the accept 
symbol in glibc.  if it isnt found, assign the function pointer to your local 
symbol.
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]