Since you built your own GCC recently, I suppose that you missed that step.
Those double underscore defines are private ones, do not use them. Use -D_POSIX_SOURCE or -D_GNU_SOURCE instead, when appropriate.