]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: fix build on Solaris 11
authorWilly Tarreau <w@1wt.eu>
Fri, 20 May 2016 04:29:59 +0000 (06:29 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 26 May 2016 05:15:57 +0000 (07:15 +0200)
commit5f6e9054b920b9952baa9860c6ead1039c66e940
treecb73feaa7f40782626f838e0bddf5b15b693320c
parentf2ebcb47cbf2af36236fde807c0c21a22d7c1e79
BUILD: fix build on Solaris 11

htonll()/ntohll() already exist on Solaris 11 with a different declaration,
causing a build error as reported by Jonathan Fisher. They used to exist on
OSX with a #define which allowed us to detect them. It was a bad idea to give
these functions a name subject to conflicts like this. Simply rename them
my_htonll()/my_ntohll() to definitely get rid of the conflict.

This patch must be backported to 1.6.
include/common/standard.h
src/sample.c