33 lines
930 B
Diff
33 lines
930 B
Diff
|
Fix builds on musl
|
||
|
|
||
|
--- a/media_softlet/linux/common/os/osservice/mos_utilities_specific.cpp
|
||
|
+++ b/media_softlet/linux/common/os/osservice/mos_utilities_specific.cpp
|
||
|
@@ -51,7 +51,9 @@
|
||
|
#include <signal.h>
|
||
|
#include <unistd.h> // fork
|
||
|
#include <algorithm>
|
||
|
+#if defined(__GLIBC__)
|
||
|
#include <execinfo.h> // backtrace
|
||
|
+#endif
|
||
|
|
||
|
const char *MosUtilitiesSpecificNext::m_szUserFeatureFile = USER_FEATURE_FILE;
|
||
|
MOS_PUF_KEYLIST MosUtilitiesSpecificNext::m_ufKeyList = nullptr;
|
||
|
@@ -2489,6 +2491,7 @@
|
||
|
MOS_FreeMemory(pTraceBuf);
|
||
|
}
|
||
|
}
|
||
|
+#if defined(__GLIBC__)
|
||
|
if (m_mosTraceFilter & (1ULL << TR_KEY_CALL_STACK))
|
||
|
{
|
||
|
// reserve space for header and stack size field.
|
||
|
@@ -2508,6 +2511,7 @@
|
||
|
size_t ret = write(MosUtilitiesSpecificNext::m_mosTraceFd, traceBuf, nLen);
|
||
|
}
|
||
|
}
|
||
|
+#endif
|
||
|
}
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
|