Using sched_getcpu() with glibc-2.5

view story

http://www.linuxquestions.org – Hello, So this software I am working with was coded using glibc 2.12, but I have to make it run with glibc-2.5. So far the only problem I have found when compiling is that the software uses the sched_getcpu() function. But, I looked it up and apparently sched_getcpu() has only been available since glibc-2.6. So, I need an alternate function/solution that does the same thing as sched_getcpu(). Is there an alternate pre-glibc-2.6 equivalent function I could use? I was also thinking of trying to find the code for the function online and trying to write an equivalent...but I am fairly new to (HowTos)