summaryrefslogtreecommitdiff
path: root/sci-libs/tensorflow/files/tensorflow-2.13.0-0013-Fixing-build-issue-with-Clang-16-and-GCC-13.patch
blob: 9961d94cd48c17505385096941790196596dc76b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
From 9081d1ccadb7fcd3e2dd01106e85003af2fb7975 Mon Sep 17 00:00:00 2001
From: wangjiezhe <wangjiezhe@gmail.com>
Date: Sun, 21 Jan 2024 00:26:21 +0800
Subject: [PATCH 13/13] Fixing build issue with Clang 16 and GCC 13

---
 tensorflow/lite/kernels/internal/spectrogram.cc | 2 ++
 tensorflow/tsl/lib/io/cache.h                   | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/tensorflow/lite/kernels/internal/spectrogram.cc b/tensorflow/lite/kernels/internal/spectrogram.cc
index a832962a38d..9b1f86ba717 100644
--- a/tensorflow/lite/kernels/internal/spectrogram.cc
+++ b/tensorflow/lite/kernels/internal/spectrogram.cc
@@ -18,6 +18,8 @@ limitations under the License.
 #include <assert.h>
 #include <math.h>
 
+#include <cstdint>
+
 #include "third_party/fft2d/fft.h"
 
 namespace tflite {
diff --git a/tensorflow/tsl/lib/io/cache.h b/tensorflow/tsl/lib/io/cache.h
index f894c5916d5..e49d09b7450 100644
--- a/tensorflow/tsl/lib/io/cache.h
+++ b/tensorflow/tsl/lib/io/cache.h
@@ -16,6 +16,8 @@ limitations under the License.
 #ifndef TENSORFLOW_TSL_LIB_IO_CACHE_H_
 #define TENSORFLOW_TSL_LIB_IO_CACHE_H_
 
+#include <cstdint>
+
 #include "tensorflow/tsl/platform/stringpiece.h"
 
 // A Cache is an interface that maps keys to values.  It has internal
-- 
2.43.0