summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2016-03-13 11:05:29 -0400
committerTim-Philipp Müller <tim@centricular.com>2016-09-26 10:59:45 +0100
commitb724894b27e2956c01e8198892d8220e16ab2597 (patch)
tree3075762d1e3d0d71e39295298e4b2a773245f724
parentdd7e23e2b2b599597e60a2c56e1a8d1663511bcd (diff)
downloadgstreamer-b724894b27e2956c01e8198892d8220e16ab2597.tar.gz
libcompat.h: strsignal() should be not be decleared const
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
-rw-r--r--libs/gst/check/libcheck/strsignal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/gst/check/libcheck/strsignal.c b/libs/gst/check/libcheck/strsignal.c
index b79409ba8e..57e71cd3d4 100644
--- a/libs/gst/check/libcheck/strsignal.c
+++ b/libs/gst/check/libcheck/strsignal.c
@@ -1,6 +1,6 @@
#include "libcompat.h"
-const char *
+char *
strsignal (int sig)
{
static char signame[40];