Skip to content

Commit 7ae002c

Browse files
committed
8286582: Build fails on macos aarch64 when using --with-zlib=bundled
Reviewed-by: phh, sgehwolf Backport-of: 8363d9db801314f13e708db62993da5b73634f69
1 parent 6849667 commit 7ae002c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

jdk/make/lib/CoreLibraries.gmk

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2011, 2022, Oracle and/or its affiliates. All rights reserved.
33
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
#
55
# This code is free software; you can redistribute it and/or modify it
@@ -266,6 +266,9 @@ ifeq ($(USE_EXTERNAL_LIBZ), true)
266266
LIBZIP_EXCLUDES += zlib
267267
else
268268
ZLIB_CPPFLAGS := -I$(JDK_TOPDIR)/src/share/native/java/util/zip/zlib
269+
ifeq ($(OPENJDK_TARGET_OS), macosx)
270+
ZLIB_CPPFLAGS += -DHAVE_UNISTD_H
271+
endif
269272
endif
270273

271274
BUILD_LIBZIP_REORDER :=

0 commit comments

Comments
 (0)