fix compilation when libproxyprotocol is not present

This commit is contained in:
Yves Rutschle 2025-04-06 11:59:08 +02:00
parent 5ad1ea1e25
commit 0e7885bc9f
3 changed files with 6 additions and 2 deletions

View File

@ -20,6 +20,8 @@
*/ */
#ifdef HAVE_PROXYPROTOCOL
#include <proxy_protocol.h> #include <proxy_protocol.h>
#include "common.h" #include "common.h"
#include "log.h" #include "log.h"
@ -112,3 +114,5 @@ int pp_write_header(int pp_version, struct connection* cnx)
return 0; return 0;
} }
#endif /* HAVE_PROXYPROTOCOL */

View File

@ -8,7 +8,7 @@ int pp_write_header(int pp_version, struct connection* cnx);
#else /* HAVE_PROXYPROTOCOL */ #else /* HAVE_PROXYPROTOCOL */
static inline int pp_write_header(int pp_version, struct connection* cnx) {} static inline int pp_write_header(int pp_version, struct connection* cnx) { return 0; }
#endif /* HAVE_PROXYPROTOCOL */ #endif /* HAVE_PROXYPROTOCOL */

View File

@ -1,5 +1,5 @@
#ifndef VERSION_H #ifndef VERSION_H
#define VERSION_H #define VERSION_H
#define VERSION "v2.1.4-42-g4978641-dirty" #define VERSION "v2.2.0-dirty"
#endif #endif