diff --git a/Makefile b/Makefile index 240cb68c523..d579d663618 100644 --- a/Makefile +++ b/Makefile @@ -2455,9 +2455,7 @@ PUBLIC_HEADERS_C += \ LIBZ_OBJS = $(addprefix $(OBJDIR)/$(CONFIG)/, $(addsuffix .o, $(basename $(LIBZ_SRC)))) $(LIBZ_OBJS): CFLAGS += -fvisibility=hidden -ifeq ($(SYSTEM),Darwin) $(LIBZ_OBJS): CPPFLAGS += -DHAVE_UNISTD_H -endif $(LIBDIR)/$(CONFIG)/libz.a: $(LIBZ_OBJS) $(E) "[AR] Creating $@" diff --git a/build_handwritten.yaml b/build_handwritten.yaml index 3993ecc4c7c..8a5d811e19b 100644 --- a/build_handwritten.yaml +++ b/build_handwritten.yaml @@ -216,6 +216,7 @@ defaults: LDFLAGS: -g zlib: CFLAGS: -fvisibility=hidden + CPPFLAGS: -DHAVE_UNISTD_H php_config_m4: deps: - grpc