This adds the hidden visibility attribute to functions that are needed in
multiple source files of the library but not part of the public API. This
is technically a major bump, but that decided to be overkill.
discussed with deraadt and millert
-# $OpenBSD: Makefile,v 1.21 2021/07/04 14:24:49 tb Exp $
+# $OpenBSD: Makefile,v 1.22 2024/01/21 07:33:46 tb Exp $
LIB= z
HDRS= zconf.h zlib.h
PC_FILES=zlib.pc
CLEANFILES+=${PC_FILES}
+CFLAGS += -DHAVE_HIDDEN
+
includes:
@cd ${.CURDIR}; for i in $(HDRS); do \
j="cmp -s $$i ${DESTDIR}/usr/include/$$i || \