Details
Diff Detail
Event Timeline
test/tsan/getline_nohang.cc | ||
---|---|---|
5 | Isn't "#ifdef FreeBSD" more common? (that doesn't make much difference however) I've also noticed other #ifdef's for OpenBSD, DragonFlyBSD, NetBSD etc. in the codebase. Do you know if they also apply here? |
test/tsan/getline_nohang.cc | ||
---|---|---|
5 |
That's the style I would use, fwiw.
There's going to be a lot of tedious comparison work to be done to make this work across all *BSDs. On the LLDB list we had a short discussion on having a general *BSD define, but did not reach a conclusion. My take is that there's not a lot of value in adding other BSD defines for a small handful of cases (like this one, perhaps) if the overall functionality is nowhere near complete. |
Isn't "#ifdef FreeBSD" more common? (that doesn't make much difference however)
Yes, a typo. Thanks.
I've also noticed other #ifdef's for OpenBSD, DragonFlyBSD, NetBSD etc. in the codebase. Do you know if they also apply here?
Well, I don't. But even if I knew it, I would propose we do not respect them in this diff.
Isn't "#ifdef FreeBSD" more common? (that doesn't make much difference however)
I've also noticed other #ifdef's for OpenBSD, DragonFlyBSD, NetBSD etc. in the codebase. Do you know if they also apply here?