Browse Source

opendkim: Fix compilation with uClibc-ng

res_nsend and res_send are both not available in uClibc-ng as configured
in OpenWrt. Having this function return an error is the only sensible way
to fix.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
lilik-openwrt-22.03
Rosen Penev 5 years ago
parent
commit
b5b776fc9a
No known key found for this signature in database GPG Key ID: 36D31CFA845F0E3B
2 changed files with 21 additions and 1 deletions
  1. +1
    -1
      mail/opendkim/Makefile
  2. +20
    -0
      mail/opendkim/patches/020-uclibc.patch

+ 1
- 1
mail/opendkim/Makefile View File

@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=opendkim
PKG_VERSION:=2.10.3
PKG_RELEASE:=3
PKG_RELEASE:=4
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@SF/$(PKG_NAME)


+ 20
- 0
mail/opendkim/patches/020-uclibc.patch View File

@ -0,0 +1,20 @@
--- a/libopendkim/dkim-dns.c
+++ b/libopendkim/dkim-dns.c
@@ -163,6 +163,9 @@ int
dkim_res_query(void *srv, int type, unsigned char *query, unsigned char *buf,
size_t buflen, void **qh)
{
+#ifdef __UCLIBC__
+ return DKIM_DNS_ERROR;
+#else
int n;
int ret;
struct dkim_res_qh *rq;
@@ -209,6 +212,7 @@ dkim_res_query(void *srv, int type, unsigned char *query, unsigned char *buf,
*qh = (void *) rq;
return DKIM_DNS_SUCCESS;
+#endif // __UCLIBC__
}
/*

Loading…
Cancel
Save