Import libtalloc-2.1.14 into the tree

talloc is a hirearchical memory allocator which Osmocom uses a lot
for its userspace programs on Linux.  Experiments show that it's
actually very much possible to use it inside of microcontroller firmware
projects, particularly the small subset which we generally use.

Change-Id: Ibd31b40d5b75b3fc1783a6b02b0e97da430e0f60
diff --git a/sysmoOCTSIM/replace.h b/sysmoOCTSIM/replace.h
new file mode 100644
index 0000000..711f3a5
--- /dev/null
+++ b/sysmoOCTSIM/replace.h
@@ -0,0 +1,27 @@
+#pragma once
+/* whatever talloc 2.1.14 (from Debian talloc-2.1.14-2) required to build it
+ * with gcc-arm-none-eabi on a Debian unstable system */
+
+#include <stdbool.h>
+#include <string.h>
+#include <errno.h>
+#include <limits.h>
+
+#ifndef _PUBLIC_
+#define _PUBLIC_ __attribute__((visibility("default")))
+#endif
+
+#ifndef MIN
+#define MIN(a,b) ((a)<(b)?(a):(b))
+#endif
+
+#ifndef MAX
+#define MAX(a,b) ((a)>(b)?(a):(b))
+#endif
+
+#define TALLOC_BUILD_VERSION_MAJOR 2
+#define TALLOC_BUILD_VERSION_MINOR 1
+#define TALLOC_BUILD_VERSION_RELEASE 14
+
+#define HAVE_VA_COPY
+#define HAVE_CONSTRUCTOR_ATTRIBUTE