Skip to content

Commit 73c7002

Browse files
committed
PHPC-2501: Conditionally define MONGOC_CYRUS_PLUGIN_PATH_PREFIX on Windows
This was missed in 6a2e15a when bumping to libmongoc 1.26.2. Define the constant as null to satisfy compilation. It will not actually be used for path prefix checking.
1 parent 754e934 commit 73c7002

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

config.w32

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,10 @@ if (PHP_MONGODB != "no") {
239239
CHECK_HEADER_ADD_INCLUDE("sasl/sasl.h", "CFLAGS_MONGODB")) {
240240
mongoc_opts.MONGOC_ENABLE_SASL = 1;
241241
mongoc_opts.MONGOC_ENABLE_SASL_CYRUS = 1;
242+
243+
// Referenced by _mongoc_cyrus_verifyfile_cb in mongoc-cyrus.c on Windows
244+
ADD_FLAG("CFLAGS_MONGODB", "/D MONGOC_CYRUS_PLUGIN_PATH_PREFIX=0");
245+
242246
if (CHECK_FUNC_IN_HEADER("sasl/sasl.h", "sasl_client_done")) {
243247
mongoc_opts.MONGOC_HAVE_SASL_CLIENT_DONE = 1;
244248
}

0 commit comments

Comments
 (0)