Files
main/multimedia/stream/mpd/files/add_missing_include.patch
T
4fury-c3440d8 9f3fd6b21c fmt, mpd.
2021-10-17 13:57:37 +03:00

24 lines
737 B
Diff

From 6a2e7bbc02c0f1b1ee404b13b5035d4027abd506 Mon Sep 17 00:00:00 2001
From: Thomas Zander <thomas.e.zander@googlemail.com>
Date: Sat, 16 Oct 2021 17:36:56 +0200
Subject: [PATCH] protocol/ArgParser.cxx: Add missing #include <stdio.h>
Fixes a build problem on platforms where stdio.h is not included
transitively. snprintf() is defined in stdio.h.
---
src/protocol/ArgParser.cxx | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/protocol/ArgParser.cxx b/src/protocol/ArgParser.cxx
index 123182f72..72190d9de 100644
--- a/src/protocol/ArgParser.cxx
+++ b/src/protocol/ArgParser.cxx
@@ -23,6 +23,7 @@
#include "Chrono.hxx"
#include "util/NumberParser.hxx"
+#include <stdio.h>
#include <stdlib.h>
static inline ProtocolError