zvbi/zvbi-glibc27.diff

20 lines
451 B
Diff

---
src/chains.c | 6 ++++++
1 file changed, 6 insertions(+)
--- src/chains.c.orig
+++ src/chains.c
@@ -168,6 +168,12 @@ static int is_vbi_device(const char *pat
return 0;
}
+/*
+ * Newer glibc defines an open() macro that checks the optional third
+ * argument, but calls the open() _function_ in the end, so undefining
+ * it here should be safe.
+ */
+#undef open
int open(const char *pathname, int flags, ...)
{
va_list args;