1 --- domoticz-2022.1/main/domoticz.cpp.bak Tue Jun 14 06:06:44 2022
2 +++ domoticz-2022.1/main/domoticz.cpp Tue Jun 14 06:15:19 2022
7 +#elif defined(__sun) /* elif of: #elif defined(__linux__) */
8 + static size_t getExecutablePathName(char* pathName, size_t pathNameCapacity)
10 + const char *p = getexecname();
11 + size_t pathNameSize = strlen(p)+1;
12 + if (pathNameSize > pathNameCapacity)
15 + strncpy ( pathName, p, pathNameSize );
16 + return pathNameSize;
18 #else /* else of: #elif defined(__APPLE__) */
19 #error provide your own getExecutablePathName implementation
20 #endif /* end of: #if defined(_WIN32) */