• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/ipkg/0001-fix-musl-build.patch
Thomas PetazzoniThomas Petazzoni committed f52f17e0c3729 Aug 2015
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
Remove __P macro usage to fix musl build
2
​
3
__P() is used for compatibility with old K&R C compilers. With ANSI C
4
this macro has no effect.
5
​
6
This fixes a compilation error with musl libc because of undeclared
7
__P.
8
​
9
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
10
​
11
Index: b/md5.c
12
===================================================================
13
--- a/md5.c
14
+++ b/md5.c
15
@@ -97,21 +97,21 @@
16
 
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);
21
 
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);
30
 
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);
39
 
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 @@
43
 
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);
48
 
49
 //----------------------------------------------------------------------------
50
 //--------end of md5.h
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.