3
0
Fork 0
forked from mirrors/nixpkgs

srt-live-server: add missing ctime include

This commit is contained in:
Timon Stampfli 2023-05-27 12:26:41 +02:00
parent 7a14867b5b
commit d07a2fc118
2 changed files with 14 additions and 0 deletions

View file

@ -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>

View file

@ -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 ];