This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
glibc version and sched_setaffinity
- From: Gregor Jasny <gjasny at web dot de>
- To: glibc-bugs at sources dot redhat dot com
- Date: Thu, 11 Jan 2007 18:05:02 +0100
- Subject: glibc version and sched_setaffinity
Hello,
I have not found a glibc-users like list. So I try this one.
In glibc 2.3.3 the sched_*affinity functions take only 2 parameters. All
other 2.3.x versions use three parameters.
So I'd like the preprocessor to switch between the two different calls.
The problem is that I can't find a preprocessor variable containing the
"third" version number.
Whats the best way to check with the preprocessor if the system uses
glibc 2.3.3?
Thanks,
Gregor