iodine: Fix compilation with uClibc-ng
authorRosen Penev <rosenp@gmail.com>
Wed, 1 May 2019 19:01:03 +0000 (12:01 -0700)
committerRosen Penev <rosenp@gmail.com>
Tue, 13 Aug 2019 22:03:23 +0000 (15:03 -0700)
daemon is supported now.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
(cherry-picked from 3226673a48f42fd9f9a66ec1578a6ea887a0ccf6)

net/iodine/Makefile
net/iodine/patches/100-musl-compatibility.patch

index e6cf46c398ae772ed16ced2a82f6a63e988ea1c1..bf4d2f50b798b85d6defb2250ec091de91861338 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=iodine
 PKG_VERSION:=0.7.0
-PKG_RELEASE:=3
+PKG_RELEASE:=4
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=http://code.kryo.se/iodine/
index 17ddc04836367cfead8544eed3fea78874cc36b7..ef55c3c52c31dc2df1c02ded9c238e9d7e3b41df 100644 (file)
@@ -20,7 +20,7 @@ index 2715979..5f0e370 100644
  
  /* daemon(3) exists only in 4.4BSD or later, and in GNU libc */
 -#if !defined(ANDROID) && !defined(WINDOWS32) && !(defined(BSD) && (BSD >= 199306)) && !defined(__GLIBC__)
-+#ifdef __UCLIBC__
++#ifdef __NO_DAEMON__
  static int daemon(int nochdir, int noclose)
  {
        int fd, i;