mirror of
https://github.com/openwrt/packages.git
synced 2025-12-22 19:04:32 +04:00
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>
11 lines
280 B
Diff
11 lines
280 B
Diff
--- 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)
|
|
{
|