package/rpcbind: fix musl build
commit4cae57b4588e5ad6917559602d529c86be95db42
authorYann E. MORIN <yann.morin.1998@free.fr>
Thu, 18 Aug 2016 21:50:14 +0000 (18 23:50 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Fri, 19 Aug 2016 09:33:44 +0000 (19 11:33 +0200)
tree1ad2861f62466078e7266155a41b5573af58bfff
parente31eb720408bb0826ec5a27e804dbe6afaf30390
package/rpcbind: fix musl build

rpcbind uses the __P() macro defined in sys/cdefs.h but does not
includes it explicitly, relying on the glibc behaviour to include it
from its own headers.

But this macro does nothing but expands as its argument. In the past,
it did provide support for pre-ANSI compilers that did not support
function prototypes. Those are now gone, and glibc provides this macro
for legacy code.

Patch out the use of __P() altogether.

Fixes:
    http://autobuild.buildroot.org/results/346/346c5b562c244ddb039db2f86f71d670a01ed9ce/
    http://autobuild.buildroot.org/results/d77/d77454265c45539178c008c5d92509c441447675/
    and numerous such autobuild failures

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/rpcbind/0003-src-remove-use-of-the-__P-macro.patch [new file with mode: 0644]