From f3a4fc6b4a9962192ab3b64fb4096821d150e9e0 Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Mon, 3 Aug 2015 11:35:25 +0200 Subject: [PATCH] Fix build with Visual Studio. --- coreapi/lpconfig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coreapi/lpconfig.c b/coreapi/lpconfig.c index 791823567..921c88997 100644 --- a/coreapi/lpconfig.c +++ b/coreapi/lpconfig.c @@ -370,7 +370,7 @@ LpConfig *lp_config_new_with_factory(const char *config_filename, const char *fa LpConfig *lpconfig=lp_new0(LpConfig,1); lpconfig->refcnt=1; if (config_filename!=NULL){ - if(access(config_filename, F_OK) == 0) { + if(ortp_file_exist(config_filename) == 0) { lpconfig->filename=lp_realpath(config_filename, NULL); if(lpconfig->filename == NULL) { ms_error("Could not find the real path of %s: %s", config_filename, strerror(errno));