libcompat.h: strsignal() should be not be decleared const
authorAnthony G. Basile <blueness@gentoo.org>
Sun, 13 Mar 2016 15:05:29 +0000 (11:05 -0400)
committerSebastian Dröge <sebastian@centricular.com>
Wed, 23 Mar 2016 12:48:16 +0000 (14:48 +0200)
POSIX standards requires strsignal() to return a pointer to a char,
not a const pointer to a char. [1]  On uClibc, and possibly other
libc's, that do not HAVE_DECL_STRSIGNAL, libcompat.h declares
const char *strsignal (int sig) which causes a type error.

[1] man 3 strsignal

https://bugzilla.gnome.org/show_bug.cgi?id=763567

libs/gst/check/libcheck/libcompat.h

index 32f944c..f09289b 100644 (file)
@@ -101,7 +101,7 @@ CK_DLL_EXP char *strdup (const char *str);
 #endif /* !HAVE_DECL_STRDUP && HAVE__STRDUP */
 
 #if !HAVE_DECL_STRSIGNAL
-CK_DLL_EXP const char *strsignal (int sig);
+CK_DLL_EXP char *strsignal (int sig);
 #endif /* !HAVE_DECL_STRSIGNAL */
 
 /*