diff options
author | Timon Stampfli <timon@timon.ch> | 2023-05-27 12:26:41 +0200 |
---|---|---|
committer | Timon Stampfli <timon@timon.ch> | 2023-05-27 16:16:53 +0200 |
commit | d07a2fc11806b325b19cd9f9d4c0b60f316bf473 (patch) | |
tree | 034bed87f14bb105d0522ecdc31ca85cd12f9b69 /pkgs/applications/video/srt-live-server | |
parent | 7a14867b5bea7fdda28f868f1d8d65858e0bab21 (diff) |
srt-live-server: add missing ctime include
Diffstat (limited to 'pkgs/applications/video/srt-live-server')
-rw-r--r-- | pkgs/applications/video/srt-live-server/add-ctime-include.patch | 11 | ||||
-rw-r--r-- | pkgs/applications/video/srt-live-server/default.nix | 3 |
2 files changed, 14 insertions, 0 deletions
diff --git a/pkgs/applications/video/srt-live-server/add-ctime-include.patch b/pkgs/applications/video/srt-live-server/add-ctime-include.patch new file mode 100644 index 0000000000000..2e1931ab1222c --- /dev/null +++ b/pkgs/applications/video/srt-live-server/add-ctime-include.patch @@ -0,0 +1,11 @@ +diff --git a/slscore/common.hpp b/slscore/common.hpp +index 30aeeea..bed0e62 100644 +--- a/slscore/common.hpp ++++ b/slscore/common.hpp +@@ -29,6 +29,7 @@ + #include <stddef.h> + #include <stdint.h> + #include <string> ++#include <ctime> + #include <vector> + #include <unistd.h> diff --git a/pkgs/applications/video/srt-live-server/default.nix b/pkgs/applications/video/srt-live-server/default.nix index e02d15a595bf6..8bc3cd330b65b 100644 --- a/pkgs/applications/video/srt-live-server/default.nix +++ b/pkgs/applications/video/srt-live-server/default.nix @@ -19,6 +19,9 @@ stdenv.mkDerivation rec { patches = [ # https://github.com/Edward-Wu/srt-live-server/pull/94 ./fix-insecure-printfs.patch + + # https://github.com/Edward-Wu/srt-live-server/pull/127 # adds `#include <ctime>` + ./add-ctime-include.patch ]; buildInputs = [ srt zlib ]; |