diff --git a/build-aux/configure-lib.sh b/build-aux/configure-lib.sh index 8be65233..0f9bc8f9 100644 --- a/build-aux/configure-lib.sh +++ b/build-aux/configure-lib.sh @@ -400,6 +400,7 @@ lib/stub/sigfillset.c lib/stub/sigsetmask.c lib/stub/sin.c lib/stub/sqrt.c +lib/stub/strcoll.c lib/stub/strftime.c lib/stub/strsignal.c lib/stub/sys_siglist.c diff --git a/include/string.h b/include/string.h index 441faeda..ad0221b9 100644 --- a/include/string.h +++ b/include/string.h @@ -42,6 +42,7 @@ char *strcat (char *dest, char const *src); char *strchr (char const *s, int c); int strcasecmp (char const *s1, char const *s2); int strcmp (char const *, char const *); +int strcoll (char const *, char const *); char *strcpy (char *dest, char const *src); size_t strlen (char const *); char *strncpy (char *to, char const *from, size_t size); diff --git a/lib/stub/strcoll.c b/lib/stub/strcoll.c new file mode 100644 index 00000000..52cb564f --- /dev/null +++ b/lib/stub/strcoll.c @@ -0,0 +1,28 @@ +/* -*-comment-start: "//";comment-end:""-*- + * GNU Mes --- Maxwell Equations of Software + * Copyright © 2022 Jan (janneke) Nieuwenhuizen + * + * This file is part of GNU Mes. + * + * GNU Mes is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or (at + * your option) any later version. + * + * GNU Mes is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with GNU Mes. If not, see . + */ + +#include +#include + +int +strcoll (char const *a, char const *b) +{ + return strcmp (a, b); +}