blob: 23c1048a362e465000eba9533c040a1730aea8da [file] [log] [blame]
Patrick Williams92b42cb2022-09-03 06:53:57 -05001From c85a53a41d4e6bfc49c377217ece12a1f330a690 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 12 Aug 2022 22:50:06 -0700
4Subject: [PATCH] include required system headers for isspace() and sscanf()
5 functions
6
7Newer compilers ( clang 15 ) has turned stricter and errors out instead
8of warning on implicit function declations
9Fixes
10gstssaparse.c:297:12: error: call to undeclared library function 'isspace' with type 'int (int)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
11while (isspace(*t))
12
13Upstream-Status: Submitted [https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2879]
14
15Signed-off-by: Khem Raj <raj.khem@gmail.com>
16---
17 gst/subparse/gstssaparse.c | 2 ++
18 1 file changed, 2 insertions(+)
19
20diff --git a/gst/subparse/gstssaparse.c b/gst/subparse/gstssaparse.c
21index ff802fa..5ebe678 100755
22--- a/gst/subparse/gstssaparse.c
23+++ b/gst/subparse/gstssaparse.c
24@@ -24,6 +24,8 @@
25 #include "config.h"
26 #endif
27
28+#include <ctype.h> /* isspace() */
29+#include <stdio.h> /* sscanf() */
30 #include <stdlib.h> /* atoi() */
31 #include <string.h>
32
33--
342.37.1
35