summaryrefslogtreecommitdiff
path: root/audio/mumble/files/patch-overlay_overlay.h
diff options
context:
space:
mode:
authorMark Felder <feld@FreeBSD.org>2019-03-21 13:53:03 +0000
committerMark Felder <feld@FreeBSD.org>2019-03-21 13:53:03 +0000
commit2d6b67c22f1e378fe66a830e2522253188461f48 (patch)
treefb1faa7d2a627ff06376b3e97820faac486a1e32 /audio/mumble/files/patch-overlay_overlay.h
parentdatabases/pspg: Update to 1.6.4 (diff)
audio/mumble: Revive and update to 1.3.0-rc1
- Now supports Qt5 PR: 235177
Notes
Notes: svn path=/head/; revision=496458
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..01aea6395a18
--- /dev/null
+++ b/audio/mumble/files/patch-overlay_overlay.h
@@ -0,0 +1,28 @@
+--- overlay/overlay.h.orig 2019-03-13 18:38:10 UTC
++++ overlay/overlay.h
+@@ -18,6 +18,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;
+ };
+