Merge pull request #1510 from jow-/ctorrent-svn-musl-compat
ctorrent-svn: fix musl compatibility Signed-off-by: Jo-Philipp Wich jow@openwrt.org Signed-off-by: tripolar@gmx.at
This commit is contained in:
commit
5afea09fa7
2 changed files with 12 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
#
|
#
|
||||||
# Copyright (C) 2006-2008 OpenWrt.org
|
# Copyright (C) 2006-2015 OpenWrt.org
|
||||||
#
|
#
|
||||||
# This is free software, licensed under the GNU General Public License v2.
|
# This is free software, licensed under the GNU General Public License v2.
|
||||||
# See /LICENSE for more information.
|
# See /LICENSE for more information.
|
||||||
|
@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
|
||||||
PKG_NAME:=ctorrent-svn
|
PKG_NAME:=ctorrent-svn
|
||||||
PKG_REV:=322
|
PKG_REV:=322
|
||||||
PKG_VERSION:=r$(PKG_REV)
|
PKG_VERSION:=r$(PKG_REV)
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=https://svn.code.sf.net/p/dtorrent/code/dtorrent/trunk
|
PKG_SOURCE_URL:=https://svn.code.sf.net/p/dtorrent/code/dtorrent/trunk
|
||||||
|
|
10
net/ctorrent-svn/patches/400-musl-compat.patch
Normal file
10
net/ctorrent-svn/patches/400-musl-compat.patch
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
--- a/compat.c
|
||||||
|
+++ b/compat.c
|
||||||
|
@@ -51,6 +51,7 @@ int snprintf(char *str, size_t size, con
|
||||||
|
|
||||||
|
#ifndef HAVE_STRNSTR
|
||||||
|
#include <string.h>
|
||||||
|
+#include <sys/types.h>
|
||||||
|
/* FUNCTION PROGRAMER: Siberiaic Sang */
|
||||||
|
char *strnstr(const char *haystack, const char *needle, size_t haystacklen)
|
||||||
|
{
|
Loading…
Reference in a new issue