setup_once.h: HP-UX <sys/socket.h> issue workaround
authorYang Tse <yangsita@gmail.com>
Fri, 14 Dec 2012 18:39:21 +0000 (19:39 +0100)
committerYang Tse <yangsita@gmail.com>
Fri, 14 Dec 2012 18:39:21 +0000 (19:39 +0100)
commit4ed0fc2d448d70dd079a311fa9804d504968942f
tree84e3c783615348831b2831e054591efa427b087a
parent0c677f578e8be6050c976f3923b833fbe8fc9cfb
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.
setup_once.h