tensorflow-lite: fix gcc-13 build failure

Without the change build fails on `master` as
https://hydra.nixos.org/build/249064918:

    tensorflow/lite/kernels/internal/spectrogram.cc:46:22: error: 'uint32_t' was not declared in this scope
       46 | inline int Log2Floor(uint32_t n) {
          |                      ^~~~~~~~
This commit is contained in:
Sergei Trofimovich 2024-02-11 10:23:15 +00:00
parent ef6206934d
commit d15e6302d6

View File

@ -84,6 +84,10 @@ buildBazelPackage rec {
postPatch = ''
rm .bazelversion
# Fix gcc-13 build failure by including missing include headers
sed -e '1i #include <cstdint>' -i \
tensorflow/lite/kernels/internal/spectrogram.cc
'';
preConfigure = ''