24 lines
737 B
Diff
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
|