summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Rankin <rankincj@yahoo.com>2013-09-28 22:06:45 +0100
committerChris Rankin <rankincj@yahoo.com>2013-09-28 22:06:45 +0100
commit11a652436b2aa705bea7ac35db58c89d3ab38c91 (patch)
tree5e6e941d2a56112c63f22255e4f2f0e17e27ff40
parent9a3f3641a95aa97a6d0c85119648a1f80f4fdc8d (diff)
downloadxine-lib-11a652436b2aa705bea7ac35db58c89d3ab38c91.tar.gz
xine-lib-11a652436b2aa705bea7ac35db58c89d3ab38c91.tar.bz2
Fix build for Fedora 19 (gcc (GCC) 4.8.1 20130603 (Red Hat 4.8.1-1))
-rw-r--r--include/xine/compat.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/xine/compat.h b/include/xine/compat.h
index be7d39fe8..647d664df 100644
--- a/include/xine/compat.h
+++ b/include/xine/compat.h
@@ -47,6 +47,9 @@ extern "C" {
#define XINE_PATH_MAX PATH_MAX
#endif
+#if !defined offsetof && defined __GNUC__
+#define offsetof(type, member) __builtin_offsetof(type, member)
+#endif
#ifdef __cplusplus
}