Files
nixpkgs/pkgs/by-name/xc
ghpzin 8b0d7a31ad xcur2png: fix build with gcc15
- change `malloc` declaration in `malloc.diff` patch from
`void *malloc()` to `void *malloc(size_t __size)`

PR for that patch is still unmerged upstream:
https://www.github.com/eworm-de/xcur2png/pull/3

Fixes build failure with gcc15:
```
xcur2png.c:41:7: error: conflicting types for 'malloc';
have 'void *(void)'
   41 | void *malloc ();
      |       ^~~~~~
In file included from xcur2png.c:26:
/nix/store/i1qha7him4faq593wwl1zmhg2pc6lz98-glibc-2.40-66-dev/include/stdlib.h:672:14:
note: previous declaration of 'malloc' with type 'void *(long unsigned int)'
  672 | extern void *malloc (size_t __size) __THROW __attribute_malloc__
      |              ^~~~~~
xcur2png.c: In function 'rpl_malloc':
xcur2png.c:50:10: error: too many arguments to function 'malloc';
expected 0, have 1
   50 |   return malloc (n);
      |          ^~~~~~  ~
xcur2png.c:41:7: note: declared here
   41 | void *malloc ();
      |       ^~~~~~
xcur2png.c: In function 'makeConfPath':
xcur2png.c:246:11: error: too many arguments to function 'malloc';
expected 0, have 1
  246 |     ret = malloc ((strlen (rawname) + 6) * sizeof (char)); /* rawname + ".conf\0" */
      |           ^~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
2025-12-18 12:52:38 +03:00
..
2025-12-18 12:52:38 +03:00