From 0a2aa98adfc21bc9c5767149445195a3ce52ac74 Mon Sep 17 00:00:00 2001 From: Bradley Dice Date: Tue, 22 Mar 2022 15:52:39 -0500 Subject: [PATCH] Include to fix compilation of parquet reader on GCC 11. (#10483) Includes `` for `ptrdiff_t` in `parquet/compact_protocol_reader.hpp`. Compilation fails on GCC 11 without this include. Targeting 22.04 since this was broken yesterday in #10063. Error output: ``` cudf/cpp/src/io/parquet/compact_protocol_reader.hpp:51:17: error: 'ptrdiff_t' does not name a type 51 | [[nodiscard]] ptrdiff_t bytecount() const noexcept { return m_cur - m_base; } | cudf/cpp/src/io/parquet/compact_protocol_reader.hpp:22:1: note: 'ptrdiff_t' is defined in header ''; did you forget to '#include '? ``` Also includes `` in `cpp/include/cudf/table/experimental/row_operators.cuh`, which was broken by #10164. Authors: - Bradley Dice (https://github.com/bdice) Approvers: - Conor Hoekstra (https://github.com/codereport) - Yunsong Wang (https://github.com/PointKernel) URL: https://github.com/rapidsai/cudf/pull/10483 --- cpp/include/cudf/table/experimental/row_operators.cuh | 1 + cpp/src/io/parquet/compact_protocol_reader.hpp | 1 + 2 files changed, 2 insertions(+) diff --git a/cpp/include/cudf/table/experimental/row_operators.cuh b/cpp/include/cudf/table/experimental/row_operators.cuh index d305cfa66b5..8b330c1bd10 100644 --- a/cpp/include/cudf/table/experimental/row_operators.cuh +++ b/cpp/include/cudf/table/experimental/row_operators.cuh @@ -34,6 +34,7 @@ #include #include +#include #include namespace cudf { diff --git a/cpp/src/io/parquet/compact_protocol_reader.hpp b/cpp/src/io/parquet/compact_protocol_reader.hpp index 80fa9bb846f..ba48f7b127f 100644 --- a/cpp/src/io/parquet/compact_protocol_reader.hpp +++ b/cpp/src/io/parquet/compact_protocol_reader.hpp @@ -19,6 +19,7 @@ #include "parquet.hpp" #include +#include #include #include