fix compilation when libproxyprotocol is not present

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

No files matched your search

+1 -1
View File
@@ -8,7 +8,7 @@ int pp_write_header(int pp_version, struct connection* cnx);
#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 */