summaryrefslogtreecommitdiff
path: root/multimedia/libxine/files/patch-include-xine-post.h
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/libxine/files/patch-include-xine-post.h')
-rw-r--r--multimedia/libxine/files/patch-include-xine-post.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/multimedia/libxine/files/patch-include-xine-post.h b/multimedia/libxine/files/patch-include-xine-post.h
new file mode 100644
index 000000000000..80f41beafb59
--- /dev/null
+++ b/multimedia/libxine/files/patch-include-xine-post.h
@@ -0,0 +1,11 @@
+--- include/xine/post.h.orig
++++ include/xine/post.h
+@@ -397,7 +397,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 } \