sendmail: fix compilation without sys/cdefs
authorRosen Penev <rosenp@gmail.com>
Mon, 10 Aug 2020 20:45:55 +0000 (13:45 -0700)
committerRosen Penev <rosenp@gmail.com>
Mon, 10 Aug 2020 22:22:32 +0000 (15:22 -0700)
sys/cdefs is deprecated. It's also not included with musl.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
mail/sendmail/Makefile
mail/sendmail/patches/210-cdefs.patch [new file with mode: 0644]

index 512de95aa0dac8cab21cc025511e56a0ab7891ff..c0155819a5c6f6b993bd258b1dc919485ff15687 100644 (file)
@@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=sendmail
 PKG_VERSION:=8.15.2
-PKG_RELEASE:=3
+PKG_RELEASE:=4
 
 PKG_SOURCE:=$(PKG_NAME).$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=http://artfiles.org/sendmail.org/pub/sendmail/ \
diff --git a/mail/sendmail/patches/210-cdefs.patch b/mail/sendmail/patches/210-cdefs.patch
new file mode 100644 (file)
index 0000000..53a93c3
--- /dev/null
@@ -0,0 +1,10 @@
+--- a/include/sm/os/sm_os_linux.h
++++ b/include/sm/os/sm_os_linux.h
+@@ -33,7 +33,6 @@
+ # endif /* LINUX_VERSION_CODE */
+ #endif /* SM_CONF_SHM */
+-#define SM_CONF_SYS_CDEFS_H   1
+ #ifndef SM_CONF_SEM
+ # define SM_CONF_SEM  2
+ #endif /* SM_CONF_SEM */