mirror of
https://github.com/NVIDIA/cuda-samples.git
synced 2026-01-09 20:07:49 +08:00
Bug 5631118: Modify the socket create folder for QNX as per filesystems change in QNX SDP 8.0.3
This commit is contained in:
parent
46a782fb44
commit
85231cd1b6
@ -54,8 +54,14 @@
|
|||||||
#endif
|
#endif
|
||||||
#include <vector>
|
#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
|
// Simple filesystem compatibility for GCC 8.x
|
||||||
#if defined(__GNUC__) && __GNUC__ < 9
|
#elif defined(__GNUC__) && __GNUC__ < 9
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
#include <string>
|
#include <string>
|
||||||
inline std::string getSocketFolder() {
|
inline std::string getSocketFolder() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user