Bug 5631118: Modify the socket create folder for QNX as per filesystems change in QNX SDP 8.0.3

This commit is contained in:
Shawn Zeng 2025-11-14 15:30:24 +08:00
parent 46a782fb44
commit 85231cd1b6

View File

@ -54,8 +54,14 @@
#endif
#include <vector>
// The Unix domain sockets creating folder on QNX has been restricted to qnx6-mounted directories since QNX SDP 8.0.3.
#if defined(__QNX__)
#include <string>
inline std::string getSocketFolder() {
return "/storage";
}
// Simple filesystem compatibility for GCC 8.x
#if defined(__GNUC__) && __GNUC__ < 9
#elif defined(__GNUC__) && __GNUC__ < 9
#include <cstdlib>
#include <string>
inline std::string getSocketFolder() {