improve headers to better deal with removed-in-posix-2008 features
authorRich Felker <dalias@aerifal.cx>
Wed, 15 Aug 2012 19:35:32 +0000 (15:35 -0400)
committerRich Felker <dalias@aerifal.cx>
Wed, 15 Aug 2012 19:35:32 +0000 (15:35 -0400)
commit3f80afc50577dada3940b66ef5b67da2f43cc00a
treef003e434702753eaf0441b5791e687d13c4dbbb8
parent7650390de8f72822ec0d4a9fb5b52efcf0be4698
improve headers to better deal with removed-in-posix-2008 features

with this patch, setting _POSIX_SOURCE, or setting _POSIX_C_SOURCE or
_XOPEN_SOURCE to an old version, will bring back the interfaces that
were removed in POSIX 2008 - at least the ones i've covered so far,
which are gethostby*, usleep, and ualarm. if there are other functions
still in widespread use that were removed for which similar changes
would be beneficial, they can be added just like this.
include/netdb.h
include/unistd.h