In both senses. But seriously, here is an interesting column about South African runner Caster Semenya. What this case shows us is that the word "sex," besides being ambiguous, is vague.