oggvideotools fails to build on gcc-10: error: 'memset' was not declared in...
Status: Beta
Brought to you by:
yornstreamnik
Build fails for a missing include:
oggvideotools-code/src/base/test/decoderTest.cpp: In function 'int main(int, char**)':
/home/slyfox/dev/svn/oggvideotools-code/src/base/test/decoderTest.cpp:19:5: error: 'memset' was not declared in this scope
19 | memset(&header, 0, sizeof(OggHeader));
| ^~~~~~
oggvideotools-code/src/base/test/decoderTest.cpp:8:1: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
7 | #include <iostream>
+++ |+#include
Attaching the trivial patch used in NixOS.