mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-07 14:18:25 +00:00
Fix compilation for strptime issue: declare __USE_XOPEN instead of declaring function prototype
This commit is contained in:
parent
2c06389a22
commit
b7e3d3f4ed
1 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue