Skip to content
This repository was archived by the owner on Feb 1, 2022. It is now read-only.

Commit ce6eeda

Browse files
committed
Merge pull request #662 from bjori/windows-linker-fixes
Windows linker fixes * bjori/windows-linker-fixes: We do need to link these too Include my own headers
2 parents e7dc4be + 89a55f3 commit ce6eeda

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

config.w32

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ ARG_WITH("mongo-sasl", "Mongo: Build against Cyrus-SASL", "no");
77

88
if (PHP_MONGO != "no") {
99
EXTENSION('mongo', 'php_mongo.c mongo.c mongoclient.c bson.c collection.c command_cursor.c cursor.c cursor_shared.c db.c io_stream.c log_stream.c');
10-
ADD_SOURCES(configure_module_dirname + "/contrib", "php-json.c");
10+
ADD_SOURCES(configure_module_dirname + "/contrib", "php-json.c", "mongo");
1111
ADD_SOURCES(configure_module_dirname + "/exceptions", "exception.c connection_exception.c cursor_exception.c cursor_timeout_exception.c execution_timeout_exception.c gridfs_exception.c duplicate_key_exception.c result_exception.c write_concern_exception.c protocol_exception.c ", "mongo");
1212
ADD_SOURCES(configure_module_dirname + "/gridfs", "gridfs.c gridfs_cursor.c gridfs_file.c gridfs_stream.c", "mongo");
1313
ADD_SOURCES(configure_module_dirname + "/types", "bin_data.c code.c date.c db_ref.c id.c int32.c int64.c regex.c timestamp.c", "mongo");
1414
ADD_SOURCES(configure_module_dirname + "/util", "log.c pool.c", "mongo");
1515
ADD_SOURCES(configure_module_dirname + "/mcon", "bson_helpers.c collection.c connections.c io.c manager.c mini_bson.c parse.c read_preference.c str.c utils.c", "mongo");
16-
ADD_SOURCES(configure_module_dirname + "/mcon/contrib", "md5.c strndup.c");
16+
ADD_SOURCES(configure_module_dirname + "/mcon/contrib", "md5.c strndup.c", "mongo");
1717
ADD_SOURCES(configure_module_dirname + "/api", "batch.c write.c wire_version.c", "mongo");
1818
ADD_SOURCES(configure_module_dirname + "/batch", "delete.c insert.c update.c write.c", "mongo");
1919

mcon/contrib/md5.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
*/
3737

3838
#include <string.h>
39+
#include "md5.h"
3940

4041
/* Forward declaration for the MD5 algorithm */
4142
typedef unsigned int MD5_u32plus;

mcon/contrib/strndup.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
#ifndef WIN32
3434
#include <unistd.h>
3535
#endif
36+
#include "strndup.h"
3637

3738
/* Compat function for systems that do not have strndup().
3839
* This is borrowed from FreeBSD's strndup.c, with minor CS changes */

0 commit comments

Comments
 (0)