1
0
Fork 0
libreoffice/external/zlib/missinginclude.patch
Daniel Baumann 8e63e14cf6
Adding upstream version 4:25.2.3.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-22 16:20:04 +02:00

36 lines
795 B
Diff

--- gzlib.c
+++ gzlib.c
@@ -3,6 +3,9 @@
* For conditions of distribution and use, see copyright notice in zlib.h
*/
+#if !defined _WIN32
+#include <unistd.h>
+#endif
#include "gzguts.h"
#if defined(_WIN32) && !defined(__BORLANDC__)
--- gzread.c
+++ gzread.c
@@ -3,6 +3,9 @@
* For conditions of distribution and use, see copyright notice in zlib.h
*/
+#if !defined _WIN32
+#include <unistd.h>
+#endif
#include "gzguts.h"
/* Use read() to load a buffer -- return -1 on error, otherwise 0. Read from
--- gzwrite.c
+++ gzwrite.c
@@ -3,6 +3,9 @@
* For conditions of distribution and use, see copyright notice in zlib.h
*/
+#if !defined _WIN32
+#include <unistd.h>
+#endif
#include "gzguts.h"
/* Initialize state for writing a gzip file. Mark initialization by setting