summaryrefslogtreecommitdiffstats
path: root/package/atftp/0003-tftp.h-tftpd.h-fix-musl-compile-missing-include.patch
diff options
context:
space:
mode:
authorPeter Seiderer <ps.report@gmx.net>2015-04-16 23:02:05 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-04-18 15:43:53 +0200
commitef33c008e3c5048d1442f8b0f6336db2fa8d79a1 (patch)
tree97693628b4284534d51e1ca16636c1f851f9ddbf /package/atftp/0003-tftp.h-tftpd.h-fix-musl-compile-missing-include.patch
parent9bb0af1ae597967aca35e09d332bc9d36ec5899c (diff)
downloadbuildroot-ef33c008e3c5048d1442f8b0f6336db2fa8d79a1.tar.gz
buildroot-ef33c008e3c5048d1442f8b0f6336db2fa8d79a1.zip
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>
Diffstat (limited to 'package/atftp/0003-tftp.h-tftpd.h-fix-musl-compile-missing-include.patch')
-rw-r--r--package/atftp/0003-tftp.h-tftpd.h-fix-musl-compile-missing-include.patch40
1 files changed, 40 insertions, 0 deletions
diff --git a/package/atftp/0003-tftp.h-tftpd.h-fix-musl-compile-missing-include.patch b/package/atftp/0003-tftp.h-tftpd.h-fix-musl-compile-missing-include.patch
new file mode 100644
index 0000000000..485e71a84b
--- /dev/null
+++ b/package/atftp/0003-tftp.h-tftpd.h-fix-musl-compile-missing-include.patch
@@ -0,0 +1,40 @@
+From 77e399899d9d7297d23c321811b628febdf0fd92 Mon Sep 17 00:00:00 2001
+From: Peter Seiderer <ps.report@gmx.net>
+Date: Thu, 16 Apr 2015 22:43:49 +0200
+Subject: [PATCH] tftp.h/tftpd.h: fix musl compile (missing include)
+
+Add sys/types.h include for u_char typedef.
+
+Signed-off-by: Peter Seiderer <ps.report@gmx.net>
+---
+ tftp.h | 1 +
+ tftpd.h | 1 +
+ 2 files changed, 2 insertions(+)
+
+diff --git a/tftp.h b/tftp.h
+index 12bd6aa..32a3f63 100644
+--- a/tftp.h
++++ b/tftp.h
+@@ -19,6 +19,7 @@
+
+ #include <sys/time.h>
+ #include <sys/times.h>
++#include <sys/types.h>
+ #include "tftp_def.h"
+ #include "config.h"
+
+diff --git a/tftpd.h b/tftpd.h
+index 945065e..60d3a49 100644
+--- a/tftpd.h
++++ b/tftpd.h
+@@ -20,6 +20,7 @@
+ #include <pthread.h>
+ #include <arpa/tftp.h>
+ #include <arpa/inet.h>
++#include <sys/types.h>
+ #include "tftp_io.h"
+
+ /*
+--
+2.1.4
+
OpenPOWER on IntegriCloud