packages/multimedia/tvheadend/patches/040-fortify.patch
Rosen Penev 57c6c5e73f tvheadend: fix compilation with GCC 9 and 10
Without this, compilation fails because of a fortify-source header.
There's something defining and undefining _GNU_SOURCE somewhere.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-06-24 01:18:56 -07:00

9 lines
175 B
Diff

--- a/src/intlconv.c
+++ b/src/intlconv.c
@@ -1,3 +1,6 @@
+#ifndef _GNU_SOURCE
+#define _GNU_SOURCE
+#endif
#include <iconv.h>
#include "tvheadend.h"
#include "intlconv.h"