aboutsummaryrefslogtreecommitdiff
path: root/audio/mumble/files/patch-overlay_overlay.h
diff options
context:
space:
mode:
Diffstat (limited to 'audio/mumble/files/patch-overlay_overlay.h')
-rw-r--r--audio/mumble/files/patch-overlay_overlay.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/audio/mumble/files/patch-overlay_overlay.h b/audio/mumble/files/patch-overlay_overlay.h
new file mode 100644
index 000000000000..b94a68923dd5
--- /dev/null
+++ b/audio/mumble/files/patch-overlay_overlay.h
@@ -0,0 +1,28 @@
+--- overlay/overlay.h.orig 2014-08-08 15:51:59 UTC
++++ overlay/overlay.h
+@@ -42,6 +42,25 @@ struct OverlayMsgHeader {
+ #define OVERLAY_MSGTYPE_INIT 0
+ struct OverlayMsgInit {
+ unsigned int uiWidth;
++/* BSD support */
++#ifndef ElfW
++# ifdef __FreeBSD__
++# if __ELF_WORD_SIZE == 32
++# define ElfW(type) Elf32_##type
++# else
++# define ElfW(type) Elf64_##type
++# endif
++# else
++# ifdef __NetBSD__
++# if ELFSIZE == 32
++# define ElfW(type) Elf32_##type
++# else
++# define ElfW(type) Elf64_##type
++# endif
++# endif
++# endif
++#endif
++
+ unsigned int uiHeight;
+ };
+