Fix compilation for strptime issue: declare __USE_XOPEN instead of declaring function prototype

This commit is contained in:
Gautier Pelloux-Prayer 2014-11-06 14:53:30 +01:00
parent 2c06389a22
commit b7e3d3f4ed

View file

@ -17,16 +17,16 @@
*/
#include <stdio.h>
#ifndef __USE_XOPEN
/*on Debian OS, time.h does declare strptime only if __USE_XOPEN is declared */
#define __USE_XOPEN
#endif
#include <time.h>
#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;