diff --git a/lib/context.c b/lib/context.c index cb0fbbf1..757fdd34 100644 --- a/lib/context.c +++ b/lib/context.c @@ -100,6 +100,7 @@ lws_create_context(struct lws_context_creation_info *info) lwsl_info(" SPEC_LATEST_SUPPORTED: %u\n", SPEC_LATEST_SUPPORTED); lwsl_info(" AWAITING_TIMEOUT: %u\n", AWAITING_TIMEOUT); + lwsl_info(" sizeof (*info): %u\n", sizeof(*info)); #if LWS_POSIX lwsl_info(" SYSTEM_RANDOM_FILEPATH: '%s'\n", SYSTEM_RANDOM_FILEPATH); lwsl_info(" LWS_MAX_ZLIB_CONN_BUFFER: %u\n", LWS_MAX_ZLIB_CONN_BUFFER); diff --git a/lib/libwebsockets.h b/lib/libwebsockets.h index 35361252..4855cd91 100644 --- a/lib/libwebsockets.h +++ b/lib/libwebsockets.h @@ -1278,7 +1278,14 @@ struct lws_context_creation_info { #endif /* Add new things just above here ---^ - * This is part of the ABI, don't needlessly break compatibilty */ + * This is part of the ABI, don't needlessly break compatibility + * + * The below is to ensure later library versions with new + * members added above will see 0 (default) even if the app + * was not built against the newer headers. + */ + + void *_unused[9]; }; LWS_VISIBLE LWS_EXTERN void