As pointed by Carlos O'Donnel [1], GLIBC should provide the header sys/platform.h for non-standard platform dependent functions. [1] - http://sourceware.org/ml/libc-alpha/2012-02/msg00573.html
Patch sent for review on libc-alpha: http://sourceware.org/ml/libc-alpha/2012-03/msg00115.html
I've asked several people to review the patch. Waiting for feedback.
Fix pushed upstream with git commit d9dc34cd569bcfe714fe8c708e58c028106e8b2e