[haiku-commits] Re: haiku: hrev51407 - headers/posix src/bin/network/ftp
- From: Adrien Destugues <pulkomandy@xxxxxxxxxxxxx>
- To: haiku-commits@xxxxxxxxxxxxx
- Date: Sun, 10 Sep 2017 21:51:38 +0200
On Mon, Sep 11, 2017 at 06:30:16AM +1200, Jessica Hamilton wrote:
As I see it, this kind of compatibility is usually added in
headers/compatibility/bsd.
Oh, so do these headers get searched/included first before the ones in
the posix sub-directory? And do nothing except include_next if
_BSD_SOURCE isn't defined?
Yes, that's the idea.
We could review this however. Initially the headers did not have the
_BSD_SOURCE guard, and the bsd directory was not part of the default
include path (so you had to mess with -I to use these headers). I added
the _BSD_SOURCE and made the bsd/ directory part of the system include
path.
I'm not sure there is a technical reason to keep these headers in a separate
"bsd" directory anymore, but it keeps things organized and follow the
convention we used for other standards (we have "posix", "gnu" and
"glibc" directories following mostly the same pattern).
--
Adrien.
Other related posts: