atftp: fix musl compile
authorPeter Seiderer <ps.report@gmx.net>
Thu, 16 Apr 2015 21:02:05 +0000 (23:02 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 18 Apr 2015 13:43:53 +0000 (15:43 +0200)
commitef33c008e3c5048d1442f8b0f6336db2fa8d79a1
tree97693628b4284534d51e1ca16636c1f851f9ddbf
parent9bb0af1ae597967aca35e09d332bc9d36ec5899c
atftp: fix musl compile

- add missing __THROW, __BEGIN_DECLS, __END_DECLS and __attribute_pure__
  defines in atftp own argz.h file

- add missing sys/types.h include in tftp.h and tftpd.h

Fixes [1]:

argz.h:61:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'extern'
 extern error_t __argz_create (char *__const __argv[], char **__restrict __argz,
 ^
argz.h: In function 'argz_create':
argz.h:64:34: error: expected declaration specifiers before '__THROW'
        size_t *__restrict __len) __THROW;

[1] http://autobuild.buildroot.net/results/b7f/b7f205ea2066788ea78a1a819f1b592e84e2455e/

Signed-off-by: Peter Seiderer <ps.report@gmx.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/atftp/0002-argz.h-fix-musl-compile-add-missing-defines.patch [new file with mode: 0644]
package/atftp/0003-tftp.h-tftpd.h-fix-musl-compile-missing-include.patch [new file with mode: 0644]