Commit 3ee73fcd authored by Sylvain Berfini's avatar Sylvain Berfini 🎩

Other fixes required for bb10

parent d7e26eaa
......@@ -39,6 +39,11 @@ else()
helpers/charconvert/charconvert_osx.c
str/str_osx.c
)
elseif(QNX)
list(APPEND COREC_SOURCES
helpers/charconvert/charconvert_utf8.c
str/str_utf8.c
)
else()
list(APPEND COREC_SOURCES
helpers/charconvert/charconvert_linux.c
......
......@@ -30,7 +30,7 @@
#include "charconvert.h"
#include "corec/str/str.h"
#if defined(TARGET_LINUX)
#if defined(TARGET_LINUX) || defined (TARGET_QNX)
#include <iconv.h>
#include <locale.h>
......
......@@ -45,7 +45,7 @@ extern "C" {
#endif
DATE_DLL systick_t GetTimeTick(void);
#if defined(TARGET_WIN) || defined(TARGET_PS2SDK) || defined(TARGET_LINUX) || defined(TARGET_OSX) || defined(TARGET_ANDROID)
#if defined(TARGET_WIN) || defined(TARGET_PS2SDK) || defined(TARGET_LINUX) || defined(TARGET_OSX) || defined(TARGET_ANDROID) || defined(TARGET_QNX)
#define GetTimeFreq() 1000
#else
DATE_DLL int GetTimeFreq();
......
......@@ -43,7 +43,7 @@
#if defined(TARGET_OSX)
#include <sys/mount.h>
#elif defined(TARGET_QNX)
#include <nbutil.h>
#include <sys/statvfs.h>
#else
#include <sys/vfs.h>
#endif
......@@ -392,8 +392,13 @@ int64_t GetPathFreeSpace(nodecontext* UNUSED_PARAM(p), const tchar_t* Path)
{
#ifndef TODO
// need to an include (see at includes)
#if defined(TARGET_QNX)
struct statvfs st;
if (statvfs(Path, &st) < 0)
#else
struct statfs st;
if (statfs(Path, &st) < 0)
#endif
return -1;
return (int64_t)st.f_bsize * (int64_t)st.f_bavail;
#else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment