multimedia/vobsub2srt: Fix build with newer g++.

Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Andrew Clemons 2022-02-21 20:06:18 +13:00 committed by Willy Sudiarto Raharjo
parent ea1c6894e2
commit 36dad0dc23
No known key found for this signature in database
GPG key ID: 3F617144D7238786
2 changed files with 14 additions and 0 deletions

View file

@ -0,0 +1,11 @@
diff -Naur VobSub2SRT-1.0pre7.orig/src/vobsub2srt.c++ VobSub2SRT-1.0pre7/src/vobsub2srt.c++
--- VobSub2SRT-1.0pre7.orig/src/vobsub2srt.c++ 2015-08-31 05:45:47.000000000 +1200
+++ VobSub2SRT-1.0pre7/src/vobsub2srt.c++ 2022-02-21 20:17:27.612072700 +1300
@@ -30,6 +30,7 @@
#include <string>
#include <cstdio>
#include <vector>
+#include <climits>
using namespace std;
#include "langcodes.h++"

View file

@ -83,6 +83,9 @@ find -L . \
# patch to build with latest tesseract:
patch -p1 < $CWD/vobsub2srt-c++11.patch
# fix build with newer g++
patch -p1 < $CWD/climits.diff
mkdir -p build
cd build
cmake \