From b7e3d3f4edf2a2c1f674c81c34bc3c1af5072115 Mon Sep 17 00:00:00 2001 From: Gautier Pelloux-Prayer Date: Thu, 6 Nov 2014 14:53:30 +0100 Subject: [PATCH] Fix compilation for strptime issue: declare __USE_XOPEN instead of declaring function prototype --- tester/log_collection_tester.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tester/log_collection_tester.c b/tester/log_collection_tester.c index 98035e89c..dd8d9bb7b 100644 --- a/tester/log_collection_tester.c +++ b/tester/log_collection_tester.c @@ -17,16 +17,16 @@ */ #include +#ifndef __USE_XOPEN + /*on Debian OS, time.h does declare strptime only if __USE_XOPEN is declared */ + #define __USE_XOPEN +#endif #include #include "CUnit/Basic.h" #include "linphonecore.h" #include "private.h" #include "liblinphone_tester.h" -#ifndef __APPLE__ -extern char *strptime(char*, char*, struct tm*); -#endif - LinphoneCoreManager* setup(bool_t enable_logs) { LinphoneCoreManager *marie; int timeout = 300;