python/hypothesis: update to 6.121.0
[oi-userland.git] / components / network / domoticz / patches / 001-domoticz.cpp.patch
blob3a83c97eabb5b38b8537c65727dfd858f5d44a02
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
3 @@ -452,6 +452,17 @@
5 return 0;
7 +#elif defined(__sun) /* elif of: #elif defined(__linux__) */
8 + static size_t getExecutablePathName(char* pathName, size_t pathNameCapacity)
9 + {
10 + const char *p = getexecname();
11 + size_t pathNameSize = strlen(p)+1;
12 + if (pathNameSize > pathNameCapacity)
13 + return 0;
15 + strncpy ( pathName, p, pathNameSize );
16 + return pathNameSize;
17 + }
18 #else /* else of: #elif defined(__APPLE__) */
19 #error provide your own getExecutablePathName implementation
20 #endif /* end of: #if defined(_WIN32) */