mark.yang c022f3ec33
unbound: fix build with gcc-15.0.1
* fix following error:
  http://errors.yoctoproject.org/Errors/Details/850313/
  ../git/compat/malloc.c:9:7: warning: conflicting types for built-in function 'malloc'; expected 'void *(long unsigned int)' [-Wbuiltin-declaration-mismatch]
    9 | void *malloc ();
      |       ^~~~~~
  ../git/compat/malloc.c:5:1: note: 'malloc' is declared in header '<stdlib.h>'
    4 | #include "config.h"
  +++ |+#include <stdlib.h>
    5 | #undef malloc
  ../git/compat/malloc.c: In function 'rpl_malloc_unbound':
  ../git/compat/malloc.c:23:10: error: too many arguments to function 'malloc'; expected 0, have 1
   23 |   return malloc (n);
      |          ^~~~~~  ~
  ../git/compat/malloc.c:9:7: note: declared here
    9 | void *malloc ();
      |       ^~~~~~

* Seeing that there is '#undef malloc', it appears they don't want to
  use the malloc from stdlib.h.
  Therefore, we need to correctly define the parameters for malloc.

Signed-off-by: mark.yang <mark.yang@lge.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-04-02 07:29:32 -07:00
..
2024-02-09 09:52:12 -08:00
2024-10-01 17:56:44 -07:00
2025-03-24 07:29:13 -07:00
2024-11-23 09:00:14 -08:00
2025-03-21 11:07:34 -07:00
2025-01-07 09:33:14 -08:00
2025-02-20 08:32:46 -08:00
2023-02-16 19:33:29 -08:00
2023-08-03 09:14:20 -07:00
2025-03-21 11:07:33 -07:00
2023-06-14 09:41:35 -07:00
2024-03-26 14:00:53 -07:00
2023-10-17 21:42:56 -07:00
2024-02-09 09:52:12 -08:00
2025-02-17 21:35:47 -08:00
2024-05-23 08:44:42 -07:00
2024-10-10 12:53:51 -07:00
2024-03-09 10:55:22 -08:00
2024-02-09 09:52:12 -08:00
2025-02-01 08:59:27 -08:00
2025-01-24 18:27:39 -08:00
2025-01-24 18:20:01 -08:00
2024-02-09 09:52:12 -08:00
2024-04-09 13:56:26 -07:00
2023-05-28 16:34:59 -07:00
2024-05-19 08:27:58 -07:00
2024-07-15 16:36:15 -07:00
2024-03-25 12:50:39 -07:00
2024-12-19 09:41:25 -08:00
2024-11-21 21:42:35 -08:00
2023-12-29 09:04:16 -08:00
2024-08-09 14:25:20 -07:00
2025-02-23 09:56:37 -08:00