diff --git a/src/snowflake/connector/nanoarrow_cpp/ArrowIterator/nanoarrow_ipc.c b/src/snowflake/connector/nanoarrow_cpp/ArrowIterator/nanoarrow_ipc.c index 371e198847..d0c3169053 100644 --- a/src/snowflake/connector/nanoarrow_cpp/ArrowIterator/nanoarrow_ipc.c +++ b/src/snowflake/connector/nanoarrow_cpp/ArrowIterator/nanoarrow_ipc.c @@ -31039,6 +31039,12 @@ static inline int org_apache_arrow_flatbuf_Tensor_verify_as_root_with_type_hash( #include #include +// ENODATA is an XSI extension and is not defined by all libcs (e.g., FreeBSD +// and OpenBSD). See https://github.com/apache/arrow-nanoarrow/pull/906. +#if !defined(ENODATA) +#define ENODATA 120 +#endif + // For thread safe shared buffers we need C11 + stdatomic.h // Can compile with -DNANOARROW_IPC_USE_STDATOMIC=0 or 1 to override // automatic detection