libglib2: bump to version 2.48.2
[buildroot-gz.git] / package / ipkg / 0001-fix-musl-build.patch
blobfce3ec4afbe2fb44850cbfe5f304deede65a8ddf
1 Remove __P macro usage to fix musl build
3 __P() is used for compatibility with old K&R C compilers. With ANSI C
4 this macro has no effect.
6 This fixes a compilation error with musl libc because of undeclared
7 __P.
9 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
11 Index: b/md5.c
12 ===================================================================
13 --- a/md5.c
14 +++ b/md5.c
15 @@ -97,21 +97,21 @@
17 /* Initialize structure containing state of computation.
18 (RFC 1321, 3.3: Step 3) */
19 -static void md5_init_ctx __P ((struct md5_ctx *ctx));
20 +static void md5_init_ctx (struct md5_ctx *ctx);
22 /* Starting with the result of former calls of this function (or the
23 initialization function update the context for the next LEN bytes
24 starting at BUFFER.
25 It is necessary that LEN is a multiple of 64!!! */
26 -static void md5_process_block __P ((const void *buffer, size_t len,
27 - struct md5_ctx *ctx));
28 +static void md5_process_block (const void *buffer, size_t len,
29 + struct md5_ctx *ctx);
31 /* Starting with the result of former calls of this function (or the
32 initialization function update the context for the next LEN bytes
33 starting at BUFFER.
34 It is NOT required that LEN is a multiple of 64. */
35 -static void md5_process_bytes __P ((const void *buffer, size_t len,
36 - struct md5_ctx *ctx));
37 +static void md5_process_bytes (const void *buffer, size_t len,
38 + struct md5_ctx *ctx);
40 /* Process the remaining bytes in the buffer and put result from CTX
41 in first 16 bytes following RESBUF. The result is always in little
42 @@ -120,7 +120,7 @@
44 IMPORTANT: On some systems it is required that RESBUF is correctly
45 aligned for a 32 bits value. */
46 -static void *md5_finish_ctx __P ((struct md5_ctx *ctx, void *resbuf));
47 +static void *md5_finish_ctx (struct md5_ctx *ctx, void *resbuf);
49 //----------------------------------------------------------------------------
50 //--------end of md5.h