summaryrefslogtreecommitdiff
path: root/multimedia/libxine/files/patch-src:xine-engine:post.h
diff options
context:
space:
mode:
authorJuergen Lock <nox@FreeBSD.org>2011-06-22 22:49:45 +0000
committerJuergen Lock <nox@FreeBSD.org>2011-06-22 22:49:45 +0000
commit23dd509befa0f427d86df13fd1c61ef078f94cff (patch)
tree4c76cd8e99edde7917bcaef53f95df1c036f1b3c /multimedia/libxine/files/patch-src:xine-engine:post.h
parent- Added DOS2UNIX (diff)
Fix build with clang.
Submitted by: Andrius Morkunas, dim
Notes
Notes: svn path=/head/; revision=276084
Diffstat (limited to 'multimedia/libxine/files/patch-src:xine-engine:post.h')
-rw-r--r--multimedia/libxine/files/patch-src:xine-engine:post.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/multimedia/libxine/files/patch-src:xine-engine:post.h b/multimedia/libxine/files/patch-src:xine-engine:post.h
new file mode 100644
index 000000000000..ca430dcdffcc
--- /dev/null
+++ b/multimedia/libxine/files/patch-src:xine-engine:post.h
@@ -0,0 +1,11 @@
+--- src/xine-engine/post.h.orig 2010-06-03 15:54:12.000000000 +0200
++++ src/xine-engine/post.h 2010-06-03 15:59:20.000000000 +0200
+@@ -377,7 +377,7 @@ static xine_post_api_parameter_t temp_p[
+
+ #define PARAM_ITEM( param_type, var, enumv, min, max, readonly, descr ) \
+ { param_type, #var, sizeof(temp_s.var), \
+- (char*)&temp_s.var-(char*)&temp_s, enumv, min, max, readonly, descr },
++ offsetof(typeof(temp_s), var), enumv, min, max, readonly, descr },
+
+ #define END_PARAM_DESCR( name ) \
+ { POST_PARAM_TYPE_LAST, NULL, 0, 0, NULL, 0, 0, 1, NULL } \