setup_once.h: HP-UX <sys/socket.h> issue workaround
authorYang Tse <yangsita@gmail.com>
Fri, 14 Dec 2012 18:39:22 +0000 (19:39 +0100)
committerYang Tse <yangsita@gmail.com>
Fri, 14 Dec 2012 18:39:22 +0000 (19:39 +0100)
commit0e8e340cba34837f89f393ec71bdaed2a4a02bf8
tree562b6995f05d9bd094b72b828a19a27940c1c981
parenta0b207164c6c943adb8b3bf89b375a491b41806a
setup_once.h: HP-UX <sys/socket.h> issue workaround

Issue: When building a 32bit target with large file support HP-UX
<sys/socket.h> header file may simultaneously provide two different
sets of declarations for sendfile and sendpath functions, one with
static and another with external linkage. Given that we do not use
mentioned functions we really don't care which linkage is the
appropriate one, but on the other hand, the double declaration emmits
warnings when using the HP-UX compiler and errors when using modern
gcc versions resulting in fatal compilation errors.

Mentioned issue is now fixed as long as we don't use sendfile nor
sendpath functions.
lib/setup_once.h