poke-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] poke/pk-mi-json: Fix vsnprintf and snprintf portability


From: Mohammad-Reza Nabipoor
Subject: [PATCH] poke/pk-mi-json: Fix vsnprintf and snprintf portability
Date: Tue, 30 Mar 2021 12:42:17 +0430

2021-03-30  Mohammad-Reza Nabipoor  <m.nabipoor@yahoo.com>

        * bootstrap.conf (gnulib_modules): Add `vsnprintf-posix` and
        `snprintf-posix` because of `jerror` function in `poke/pk-mi-json.c`.
        * poke/pk-mi-json.c: Add include `stdarg.h`.
---

Hi, Jose.

I hope this fixes the Kostas's problem.


Regards,
Mohammad-Reza


 ChangeLog         | 6 ++++++
 bootstrap.conf    | 2 ++
 poke/pk-mi-json.c | 1 +
 3 files changed, 9 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index ae94b243..71a30e97 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2021-03-30  Mohammad-Reza Nabipoor  <m.nabipoor@yahoo.com>
+
+       * bootstrap.conf (gnulib_modules): Add `vsnprintf-posix` and
+       `snprintf-posix` because of `jerror` function in `poke/pk-mi-json.c`.
+       * poke/pk-mi-json.c: Add include `stdarg.h`.
+
 2021-03-30  Jose E. Marchesi  <jemarch@gnu.org>
 
        * libpoke/pkl-ast.h (PKL_AST_BUILTIN_SLEEP): Define.
diff --git a/bootstrap.conf b/bootstrap.conf
index 67aede4c..f443e2a8 100644
--- a/bootstrap.conf
+++ b/bootstrap.conf
@@ -60,6 +60,8 @@ gnulib_modules="
   readdir
   memcpy
   read-file
+  snprintf-posix
+  vsnprintf-posix
   "
 
 # gnulib modules used in libpoke/.
diff --git a/poke/pk-mi-json.c b/poke/pk-mi-json.c
index d6ab81d8..752d750e 100644
--- a/poke/pk-mi-json.c
+++ b/poke/pk-mi-json.c
@@ -19,6 +19,7 @@
 #include <config.h>
 
 #include <assert.h>
+#include <stdarg.h>
 #include <stdio.h>
 #include <string.h>
 #include <json.h>
-- 
2.31.0



reply via email to

[Prev in Thread] Current Thread [Next in Thread]