aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2014-09-18 10:30:28 +0000
committerWerner Koch <[email protected]>2014-09-18 11:01:47 +0000
commitcc4b0caa57a595a3727e51e061c519232f7bdb05 (patch)
tree48bd3039e2f54d86ffb555f73d3009159e532196
parentFix es_fclose for streams opened with "samethread". (diff)
downloadlibgpg-error-cc4b0caa57a595a3727e51e061c519232f7bdb05.tar.gz
libgpg-error-cc4b0caa57a595a3727e51e061c519232f7bdb05.zip
Add new lock-obj-pub for Apple iOS.
* src/syscfg/lock-obj-pub.aarch64-apple-darwin.h: New. * src/syscfg/lock-obj-pub.arm-apple-darwin.h: New. -- Created by Chris Ballinger <[email protected]>. He also noted: When cross-compiling for arm-apple-darwin and aarch64-apple-darwin I also needed to generate these files, so here they are. I made a little iOS utility to help people generate them in case Apple adds any more architectures in the future: https://github.com/chrisballinger/gen-posix-lock-obj-iOS
-rw-r--r--src/Makefile.am2
-rw-r--r--src/syscfg/lock-obj-pub.aarch64-apple-darwin.h28
-rw-r--r--src/syscfg/lock-obj-pub.arm-apple-darwin.h26
3 files changed, 56 insertions, 0 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index a9c0a5a..10810a6 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -42,10 +42,12 @@ endif
# Distributed lock object definitions for cross compilation.
lock_obj_pub = \
syscfg/lock-obj-pub.aarch64-unknown-linux-gnu.h \
+ syscfg/lock-obj-pub.aarch64-apple-darwin.h \
syscfg/lock-obj-pub.alpha-unknown-linux-gnu.h \
syscfg/lock-obj-pub.arm-unknown-linux-androideabi.h \
syscfg/lock-obj-pub.arm-unknown-linux-gnueabi.h \
syscfg/lock-obj-pub.arm-unknown-linux-gnueabihf.h \
+ syscfg/lock-obj-pub.arm-apple-darwin.h \
syscfg/lock-obj-pub.hppa-unknown-linux-gnu.h \
syscfg/lock-obj-pub.i486-pc-gnu.h \
syscfg/lock-obj-pub.i486-pc-kfreebsd-gnu.h \
diff --git a/src/syscfg/lock-obj-pub.aarch64-apple-darwin.h b/src/syscfg/lock-obj-pub.aarch64-apple-darwin.h
new file mode 100644
index 0000000..3eeadfe
--- /dev/null
+++ b/src/syscfg/lock-obj-pub.aarch64-apple-darwin.h
@@ -0,0 +1,28 @@
+## lock-obj-pub.aarch64-apple-darwin.h
+## File created by gen-posix-lock-obj - DO NOT EDIT
+## To be included by mkheader into gpg-error.h
+
+typedef struct
+{
+ long _vers;
+ union {
+ volatile char _priv[64];
+ long _x_align;
+ long *_xp_align;
+ } u;
+} gpgrt_lock_t;
+
+#define GPGRT_LOCK_INITIALIZER {1,{{167,171,170,50,0,0,0,0, \
+0,0,0,0,0,0,0,0, \
+0,0,0,0,0,0,0,0, \
+0,0,0,0,0,0,0,0, \
+0,0,0,0,0,0,0,0, \
+0,0,0,0,0,0,0,0, \
+0,0,0,0,0,0,0,0, \
+0,0,0,0,0,0,0,0}}}
+##
+## Local Variables:
+## mode: c
+## buffer-read-only: t
+## End:
+##
diff --git a/src/syscfg/lock-obj-pub.arm-apple-darwin.h b/src/syscfg/lock-obj-pub.arm-apple-darwin.h
new file mode 100644
index 0000000..4e9f630
--- /dev/null
+++ b/src/syscfg/lock-obj-pub.arm-apple-darwin.h
@@ -0,0 +1,26 @@
+## lock-obj-pub.arm-apple-darwin.h
+## File created by gen-posix-lock-obj - DO NOT EDIT
+## To be included by mkheader into gpg-error.h
+
+typedef struct
+{
+ long _vers;
+ union {
+ volatile char _priv[44];
+ long _x_align;
+ long *_xp_align;
+ } u;
+} gpgrt_lock_t;
+
+#define GPGRT_LOCK_INITIALIZER {1,{{167,171,170,50,0,0,0,0, \
+0,0,0,0,0,0,0,0, \
+0,0,0,0,0,0,0,0, \
+0,0,0,0,0,0,0,0, \
+0,0,0,0,0,0,0,0, \
+0,0,0,0}}}
+##
+## Local Variables:
+## mode: c
+## buffer-read-only: t
+## End:
+##