Can't get happy, even for close friends

What do you do when all your friends are having babies and what not and you just can't get happy for them. It's like you don't want to be selfish but psychologically inside you can't help it. And you find it just hard to bear a smile because you have been wanting and waiting for a child of your own...What do you do? How do you cope?