mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-06 06:30:19 +00:00
738b7edbd5
Submitted by: pb2 via bapt
22 lines
666 B
C
22 lines
666 B
C
--- include/xine/post.h.orig
|
|
+++ include/xine/post.h
|
|
@@ -23,6 +23,9 @@
|
|
#ifndef XINE_POST_H
|
|
#define XINE_POST_H
|
|
|
|
+/* for offsetof() */
|
|
+#include <stddef.h>
|
|
+
|
|
#include <xine.h>
|
|
#include <xine/video_out.h>
|
|
#include <xine/audio_out.h>
|
|
@@ -397,7 +400,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 } \
|