mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
ctorrent: fix musl compatibility
Add missing `sys/types.h` include to `strnstr()` replacement code in `compat.c` in order to declare `ssize_t` type under musl. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
This commit is contained in:
@@ -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.
|
||||||
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=ctorrent
|
PKG_NAME:=ctorrent
|
||||||
PKG_VERSION:=dnh3.3.2
|
PKG_VERSION:=dnh3.3.2
|
||||||
PKG_RELEASE:=6
|
PKG_RELEASE:=7
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=@SF/dtorrent \
|
PKG_SOURCE_URL:=@SF/dtorrent \
|
||||||
|
|||||||
@@ -0,0 +1,10 @@
|
|||||||
|
--- a/compat.c
|
||||||
|
+++ b/compat.c
|
||||||
|
@@ -63,6 +63,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)
|
||||||
|
{
|
||||||
Reference in New Issue
Block a user