* werror-undef.patch partially reverts https://github.com/madler/zlib/commit/7108497fda9d4536a1afade7f42266e06dca4488 so the build doesn't fail with In file included from /mnt/4d311c06-5193-4f61-a3f6-53ca4d9ea1e1/libreoffice/workdir/UnpackedTarball/zlib/zlib.h:37, from /mnt/4d311c06-5193-4f61-a3f6-53ca4d9ea1e1/libreoffice/sal/rtl/crc.cxx:24: /mnt/4d311c06-5193-4f61-a3f6-53ca4d9ea1e1/libreoffice/workdir/UnpackedTarball/zlib/zconf.h:446:5: error: "HAVE_UNISTD_H" is not defined, evaluates to 0 [-Werror=undef] 446 | #if HAVE_UNISTD_H /* may be set to #if 1 by ./configure */ | ^~~~~~~~~~~~~ /mnt/4d311c06-5193-4f61-a3f6-53ca4d9ea1e1/libreoffice/workdir/UnpackedTarball/zlib/zconf.h:450:5: error: "HAVE_STDARG_H" is not defined, evaluates to 0 [-Werror=undef] 450 | #if HAVE_STDARG_H /* may be set to #if 1 by ./configure */ | ^~~~~~~~~~~~~ cc1plus: all warnings being treated as errors Change-Id: I8f1dbaf627a573b9a5ff8c9f20061ec482b87c8d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/199616 Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org> Tested-by: Jenkins
37 lines
772 B
Diff
37 lines
772 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(__DJGPP__)
|
|
--- 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
|