summaryrefslogtreecommitdiff
path: root/audio/mumble/files/patch-overlay_overlay.h
blob: 01aea6395a184fc97d13ed9dce3cef62f81e3cd2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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;
 };