    ifeq ($(HOST),beos)
      CFLAGS += -I$(PREFIX)/include
      LDFLAGS += -L$(PREFIX)/lib
-@@ -84,11 +85,9 @@
+@@ -82,11 +83,9 @@
  # ----------------------------------------------------------------------------
  
  # S_BEOS are sources purely for the BeOS build

 
 # ----------------------------------------------------------------------------
 # Package target
diff --git a/beos/download.cpp b/beos/download.cpp
index d7a848d..e1a0c8c 100644
--- a/beos/download.cpp
+++ b/beos/download.cpp
@@ -21,17 +21,160 @@ extern "C" {
 }
 #include "beos/download.h"
 
+#include <File.h>
+#include <FilePanel.h>
+#include <Locker.h>
+#include <Messenger.h>
 #include <StatusBar.h>
 #include <Window.h>
 
+class NSDownloadWindow: public BWindow
+{
+	public:

From a570d7727672a43af9e33e08367e379a5f99c7ae Mon Sep 17 00:00:00 2001
From: Adrien Destugues - PulkoMandy <pulkomandy@pulkomandy.tk>
Date: Thu, 15 Nov 2012 22:34:42 +0100
Subject: [PATCH] Update the BeOS/Haiku port  * Toolbar use HVIF icons on
 Haiku  * Download window  * Some tweaks to the event loop
 to let network traffic happen

---
 Makefile             |    2 +-
 beos/Makefile.target |   21 ++---
 beos/WindowStack.h   |   45 +++++++++
 beos/download.cpp    |  246 ++++++++++++++++++++++++++++++++++++++++++++++++++
 beos/download.h      |   18 ++++
 beos/fetch_rsrc.cpp  |    8 +-
 beos/gui.cpp         |  111 +++++++----------------
 beos/login.cpp       |   25 +++--
 beos/res.rdef        |   41 +++++++++
 beos/scaffolding.cpp |  152 ++++++++++++++++++++++++++++---
 beos/scaffolding.h   |    4 +
 beos/schedule.cpp    |    6 +-
 beos/window.cpp      |   62 ++++++++++---
 utils/config.h       |    4 +-
 14 files changed, 616 insertions(+), 129 deletions(-)
 create mode 100644 beos/WindowStack.h
 create mode 100644 beos/download.cpp
 create mode 100644 beos/download.h

diff --git a/Makefile b/Makefile
index c80378c..428aa74 100644
--- a/Makefile
