shithub: aacenc

Download patch

ref: f4d799d20e4879730af68a03b49d5eb225cf8bb9
parent: 5d1b42fc53252961b3ea25526723d6cb95401c65
author: Krzysztof Nikiel <knik@users.sourceforge.net>
date: Wed Aug 16 10:24:35 EDT 2017

The strncmp() declaration needs to conform to the standard to fix build failure with musl libc.

--- a/frontend/getopt.c
+++ b/frontend/getopt.c
@@ -173,7 +173,7 @@
 #if __STDC__ || defined(PROTO)
 extern char *getenv(const char *name);
 extern int  strcmp (const char *s1, const char *s2);
-extern int  strncmp(const char *s1, const char *s2, unsigned int n);
+extern int  strncmp(const char *s1, const char *s2, size_t n);
 
 static int my_strlen(const char *s);
 static char *my_index (const char *str, int chr);