From 1c49e4b0d9d432e12bb702e591958857243bb416 Mon Sep 17 00:00:00 2001
From: q66 <daniel@octaforge.org>
Date: Sun, 10 Feb 2019 18:14:59 +0100
Subject: [PATCH] biew: fix build on some targets

This patch fixes a namespace violation resulting in conflicts
and build failure on some targets.
---
 srcpkgs/biew/patches/bool.patch | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)
 create mode 100644 srcpkgs/biew/patches/bool.patch

diff --git a/srcpkgs/biew/patches/bool.patch b/srcpkgs/biew/patches/bool.patch
new file mode 100644
index 0000000000..707af17de4
--- /dev/null
+++ b/srcpkgs/biew/patches/bool.patch
@@ -0,0 +1,26 @@
+The two underscores in the front violate namespace and
+break build at least on some systems, as __bool might be
+a builtin type name.
+
+--- plugins/bin/ne.c
++++ plugins/bin/ne.c
+@@ -465,16 +465,16 @@ static void __FASTCALL__ ShowProcListNE( int modno )
+ {
+  BGLOBAL handle;
+  char ptitle[80],name[50];
+- tBool __bool;
++ tBool b;
+  memArray* obj;
+  TWindow *w;
+  handle = ne_cache;
+  bioSeek(handle,0L,SEEK_SET);
+  w = PleaseWaitWnd();
+  if(!(obj = ma_Build(0,True))) return;
+- __bool = __ReadProcListNE(handle,obj,modno);
++ b = __ReadProcListNE(handle,obj,modno);
+  CloseWnd(w);
+- if(__bool)
++ if(b)
+  {
+      if(!obj->nItems)  { NotifyBox(NOT_ENTRY,MOD_REFER); return; }
+      rd_ImpName(name,sizeof(name),modno+1,False);