minidlna: fix build with newer musl

The configure script is totally broken and does not check for
clock_gettime. Define it manually.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev 2020-03-19 22:28:15 -07:00
parent f58c2f9713
commit 269ec782eb
No known key found for this signature in database
GPG Key ID: 36D31CFA845F0E3B
1 changed files with 4 additions and 2 deletions

View File

@ -8,7 +8,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=minidlna
PKG_RELEASE:=5
PKG_RELEASE:=6
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://git.code.sf.net/p/minidlna/git
@ -48,7 +48,7 @@ define Package/minidlna/conffiles
/etc/config/minidlna
endef
CONFIGURE_ARGS +=\
CONFIGURE_ARGS += \
--with-libiconv-prefix="$(ICONV_PREFIX)" \
--with-libintl-prefix="$(INTL_PREFIX)" \
--with-os-name="OpenWrt Linux" \
@ -57,6 +57,8 @@ CONFIGURE_ARGS +=\
--with-db-path="/var/run/minidlna" \
--with-log-path="/var/log"
TARGET_CFLAGS += -DHAVE_CLOCK_GETTIME
define Package/minidlna/install
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/minidlnad $(1)/usr/sbin/minidlnad