ef33c008e3
- 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>
43 lines
835 B
Diff
43 lines
835 B
Diff
From 543e67919f5cacf309ac88ab091331e41af4224b Mon Sep 17 00:00:00 2001
|
|
From: Peter Seiderer <ps.report@gmx.net>
|
|
Date: Thu, 16 Apr 2015 22:41:57 +0200
|
|
Subject: [PATCH] argz.h: fix musl compile (add missing defines)
|
|
|
|
Add __THROW, __BEGIN_DECLS, __END_DECLS and __attribute_pure__ defines.
|
|
|
|
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
|
|
---
|
|
argz.h | 16 ++++++++++++++++
|
|
1 file changed, 16 insertions(+)
|
|
|
|
diff --git a/argz.h b/argz.h
|
|
index 582be55..bdf9f62 100644
|
|
--- a/argz.h
|
|
+++ b/argz.h
|
|
@@ -48,6 +48,22 @@
|
|
# define __const const
|
|
#endif
|
|
|
|
+#ifndef __THROW
|
|
+# define __THROW
|
|
+#endif
|
|
+
|
|
+#ifndef __BEGIN_DECLS
|
|
+# define __BEGIN_DECLS
|
|
+#endif
|
|
+
|
|
+#ifndef __END_DECLS
|
|
+# define __END_DECLS
|
|
+#endif
|
|
+
|
|
+#ifndef __attribute_pure__
|
|
+# define __attribute_pure__
|
|
+#endif
|
|
+
|
|
#ifndef __error_t_defined
|
|
typedef int error_t;
|
|
#endif
|
|
--
|
|
2.1.4
|
|
|