]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: build: rename some build macros to use the USE_* ones
authorWilly Tarreau <w@1wt.eu>
Wed, 22 May 2019 17:24:06 +0000 (19:24 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 22 May 2019 17:47:57 +0000 (19:47 +0200)
commite5733234f69a305ff37829c961f3576b93e842b1
tree26955c4abaa8812f1b368b93e5ee69aecce198f7
parent823bda0eb7438ba46301bb93870deca9896af381
CLEANUP: build: rename some build macros to use the USE_* ones

We still have quite a number of build macros which are mapped 1:1 to a
USE_something setting in the makefile but which have a different name.
This patch cleans this up by renaming them to use the USE_something
one, allowing to clean up the makefile and make it more obvious when
reading the code what build option needs to be added.

The following renames were done :

 ENABLE_POLL -> USE_POLL
 ENABLE_EPOLL -> USE_EPOLL
 ENABLE_KQUEUE -> USE_KQUEUE
 ENABLE_EVPORTS -> USE_EVPORTS
 TPROXY -> USE_TPROXY
 NETFILTER -> USE_NETFILTER
 NEED_CRYPT_H -> USE_CRYPT_H
 CONFIG_HAP_CRYPT -> USE_LIBCRYPT
 CONFIG_HAP_NS -> DUSE_NS
 CONFIG_HAP_LINUX_SPLICE -> USE_LINUX_SPLICE
 CONFIG_HAP_LINUX_TPROXY -> USE_LINUX_TPROXY
 CONFIG_HAP_LINUX_VSYSCALL -> USE_LINUX_VSYSCALL
19 files changed:
Makefile
include/common/accept4.h
include/common/compat.h
include/common/epoll.h
include/common/namespace.h
include/common/splice.h
src/auth.c
src/cfgparse-listen.c
src/cfgparse.c
src/cli.c
src/connection.c
src/fd.c
src/haproxy.c
src/mux_h1.c
src/mux_pt.c
src/proto_tcp.c
src/proxy.c
src/raw_sock.c
src/server.c