Set the OPENBSD directive at compile time

pull/13/head
Soner Tari 7 years ago
parent b6d1d92990
commit cea873e6f2

@ -74,8 +74,10 @@ FEATURES+= -DDEBUG_THREAD
# Define to add privilege separation server event loop debugging.
#FEATURES+= -DDEBUG_PRIVSEP_SERVER
# Define to add features specific to OpenBSD only, such as uuid_create().
# Define to add features specific to OpenBSD only, such as uuid_to_string().
ifeq ($(shell uname),OpenBSD)
FEATURES+= -DOPENBSD
endif
# When debugging OpenSSL related issues, make sure you use a debug build of
# OpenSSL and consider enabling its debugging options -DREF_PRINT -DREF_CHECK

@ -138,7 +138,6 @@ pxy_conn_ctx_new(evutil_socket_t fd,
uuid_create(ctx->uuid, NULL);
// @todo Set this switch at compile time
#ifdef OPENBSD
char *uuid_str;
uuid_to_string(ctx->uuid, &uuid_str, NULL);
@ -277,7 +276,7 @@ bufferevent_free_and_close_fd(struct bufferevent *bev, pxy_conn_ctx_t *ctx)
* This is for non-OpenSSL bufferevents.
*/
static void
bufferevent_free_and_close_fd_nonssl(struct bufferevent *bev, pxy_conn_ctx_t *ctx)
bufferevent_free_and_close_fd_nonssl(struct bufferevent *bev, UNUSED pxy_conn_ctx_t *ctx)
{
evutil_socket_t fd = bufferevent_getfd(bev);

Loading…
Cancel
Save