Enable Wasm BigInt. This enables WASM_BIGINT while maintaining (hypothetical) Safari 14 support
by shimming BigInt64Array and BigUint64Array if they are missing. I think the
last time we tried to enable WASM_BIGINT was before #2019 so our chances
are significantly better this time.

This will fix dynamic linking bugs, reduce code size, and improve speed.

See also my upstream PR:
https://github.com/emscripten-core/emscripten/pull/17103

- [x] Add a [CHANGELOG](https://github.com/pyodide/pyodide/blob/main/docs/project/changelog.md) entry

This patch adds missing headers in vendored zlib as done in numcodecs.js
diff --git a/c-blosc/internal-complibs/zlib-1.2.8/gzlib.c b/c-blosc/internal-complibs/zlib-1.2.8/gzlib.c
index fae202e..80606a6 100644
--- a/c-blosc/internal-complibs/zlib-1.2.8/gzlib.c
+++ b/c-blosc/internal-complibs/zlib-1.2.8/gzlib.c
@@ -2,7 +2,7 @@
  * Copyright (C) 2004, 2010, 2011, 2012, 2013 Mark Adler
  * For conditions of distribution and use, see copyright notice in zlib.h
  */
-
+#include <unistd.h>
 #include "gzguts.h"
 
 #if defined(_WIN32) && !defined(__BORLANDC__)

diff --git a/c-blosc/internal-complibs/zlib-1.2.8/gzread.c b/c-blosc/internal-complibs/zlib-1.2.8/gzread.c
index bf4538e..afe6acd 100644
--- a/c-blosc/internal-complibs/zlib-1.2.8/gzread.c
+++ b/c-blosc/internal-complibs/zlib-1.2.8/gzread.c
@@ -2,7 +2,7 @@
  * Copyright (C) 2004, 2005, 2010, 2011, 2012, 2013 Mark Adler
  * For conditions of distribution and use, see copyright notice in zlib.h
  */
-
+#include <unistd.h>
 #include "gzguts.h"
 
 /* Local functions */


diff --git a/c-blosc/internal-complibs/zlib-1.2.8/gzwrite.c b/c-blosc/internal-complibs/zlib-1.2.8/gzwrite.c
index aa767fb..a87676f 100644
--- a/c-blosc/internal-complibs/zlib-1.2.8/gzwrite.c
+++ b/c-blosc/internal-complibs/zlib-1.2.8/gzwrite.c
@@ -2,7 +2,7 @@
  * Copyright (C) 2004, 2005, 2010, 2011, 2012, 2013 Mark Adler
  * For conditions of distribution and use, see copyright notice in zlib.h
  */
-
+#include <unistd.h>
 #include "gzguts.h"
 
 /* Local functions */

This patch adds missing headers in vendored zlib as done in numcodecs.js
diff --git a/c-blosc/internal-complibs/zlib-1.2.8/gzlib.c b/c-blosc/internal-complibs/zlib-1.2.8/gzlib.c
index fae202e..80606a6 100644
--- a/c-blosc/internal-complibs/zlib-1.2.8/gzlib.c
+++ b/c-blosc/internal-complibs/zlib-1.2.8/gzlib.c
@@ -2,7 +2,7 @@
  * Copyright (C) 2004, 2010, 2011, 2012, 2013 Mark Adler
  * For conditions of distribution and use, see copyright notice in zlib.h
  */
-
+#include <unistd.h>
 #include "gzguts.h"
 
 #if defined(_WIN32) && !defined(__BORLANDC__)

diff --git a/c-blosc/internal-complibs/zlib-1.2.8/gzread.c b/c-blosc/internal-complibs/zlib-1.2.8/gzread.c
index bf4538e..afe6acd 100644
--- a/c-blosc/internal-complibs/zlib-1.2.8/gzread.c
+++ b/c-blosc/internal-complibs/zlib-1.2.8/gzread.c
@@ -2,7 +2,7 @@
  * Copyright (C) 2004, 2005, 2010, 2011, 2012, 2013 Mark Adler
  * For conditions of distribution and use, see copyright notice in zlib.h
  */
-
+#include <unistd.h>
 #include "gzguts.h"
 
 /* Local functions */


diff --git a/c-blosc/internal-complibs/zlib-1.2.8/gzwrite.c b/c-blosc/internal-complibs/zlib-1.2.8/gzwrite.c
index aa767fb..a87676f 100644
--- a/c-blosc/internal-complibs/zlib-1.2.8/gzwrite.c
+++ b/c-blosc/internal-complibs/zlib-1.2.8/gzwrite.c
@@ -2,7 +2,7 @@
  * Copyright (C) 2004, 2005, 2010, 2011, 2012, 2013 Mark Adler
  * For conditions of distribution and use, see copyright notice in zlib.h
  */
-
+#include <unistd.h>
 #include "gzguts.h"
 
 /* Local functions */
