File fix_malloc_includes.patch of Package oath-toolkit

diff -Naur a/configure.ac b/configure.ac
--- a/configure.ac	2023-07-09 13:46:50.000000000 -0600
+++ b/configure.ac	2024-09-12 11:56:32.201136622 -0600
@@ -22,6 +22,8 @@
 AC_CONFIG_MACRO_DIR([m4])
 AM_INIT_AUTOMAKE([1.13 -Wall])
 
+AC_PROG_RANLIB
+
 AC_CHECK_HEADERS_ONCE([security/pam_appl.h])
 AC_ARG_ENABLE([pam],
   [AS_HELP_STRING([--disable-pam], [disable PAM module])],
diff -Naur a/libpskc/container.c b/libpskc/container.c
--- a/libpskc/container.c	2023-07-09 14:54:21.000000000 -0600
+++ b/libpskc/container.c	2024-09-12 09:47:59.570750982 -0600
@@ -24,6 +24,7 @@
 #include <pskc/pskc.h>
 
 #include <string.h>		/* memset */
+#include <stdlib.h>		/* malloc */
 
 #define INTERNAL_NEED_PSKC_STRUCT
 #define INTERNAL_NEED_PSKC_KEY_STRUCT
diff -Naur a/libpskc/enums.c b/libpskc/enums.c
--- a/libpskc/enums.c	2023-07-09 14:54:21.000000000 -0600
+++ b/libpskc/enums.c	2024-09-12 11:32:05.634008218 -0600
@@ -25,6 +25,7 @@
 #include "internal.h"
 
 #include <string.h>		/* strcmp */
+#include <malloc.h>		/* malloc */
 
 /**
  * pskc_pinusagemode2str:
diff -Naur a/libpskc/parser.c b/libpskc/parser.c
--- a/libpskc/parser.c	2023-07-09 14:54:21.000000000 -0600
+++ b/libpskc/parser.c	2024-09-12 11:36:50.865970313 -0600
@@ -20,6 +20,8 @@
  */
 
 #include <config.h>
+#include <malloc.h>
+#include <stdlib.h>
 
 #include <pskc/pskc.h>
 
openSUSE Build Service is sponsored by