bemused: fix build by including more include files
authorHauke Mehrtens <hauke@hauke-m.de>
Sat, 3 May 2014 11:53:20 +0000 (11:53 +0000)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 3 May 2014 11:53:20 +0000 (11:53 +0000)
Signed-off-by: Russell Senior <russell@personaltelco.net>
SVN-Revision: 40675

utils/bemused/Makefile
utils/bemused/patches/110-missing_includes.patch
utils/bemused/patches/200-cxx-compile-fixes.patch

index 61cc1013a6bd77f8de771edbeb6b73061c589824..c30c7c345a92637638ee9e64869f906c17b49fad 100644 (file)
@@ -1,5 +1,5 @@
 #
-# Copyright (C) 2008-2011 OpenWrt.org
+# Copyright (C) 2008-2014 OpenWrt.org
 #
 # This is free software, licensed under the GNU General Public License v2.
 # See /LICENSE for more information.
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=bemused-mpd
 PKG_VERSION:=r062
-PKG_RELEASE:=4
+PKG_RELEASE:=5
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=http://download.origo.ethz.ch/bemused-lnx-mpdhack/526
index c049e36591610e1441456b775f23869e4f64fce8..7f14a422e745f0b0fab0241cee18786f5f546505 100644 (file)
@@ -1,11 +1,22 @@
-diff -urN bemused-mpd-r062/main.cpp bemused-mpd-r062.new/main.cpp
---- bemused-mpd-r062/main.cpp  2008-02-23 08:01:38.000000000 +0100
-+++ bemused-mpd-r062.new/main.cpp      2010-03-29 13:00:07.000000000 +0200
-@@ -16,6 +16,7 @@
+--- a/main.cpp
++++ b/main.cpp
+@@ -16,6 +16,9 @@
   ***************************************************************************/
  
  #include <stdlib.h>
 +#include <stdio.h>
++#include <getopt.h>
++#include <unistd.h>
  #include <iostream>
  
  #include "BemusedServerDlg.h"
+--- a/BemusedServerDlg.cpp
++++ b/BemusedServerDlg.cpp
+@@ -28,6 +28,7 @@
+ #include <cerrno>
+ #include <csignal>
++#include <unistd.h>
+ #include <sys/types.h>
+ #include <sys/stat.h>
+ #include <dirent.h>
index 4a6ef0e1ebbfccf3204b5e8f6ec16c6931f5b49a..607b623b9423922b54955ed1db5bcfcfb0cc8bbe 100644 (file)
@@ -1,7 +1,5 @@
-Index: bemused-mpd-r062/Makefile
-===================================================================
---- bemused-mpd-r062.orig/Makefile     2008-03-31 09:43:54.000000000 +0200
-+++ bemused-mpd-r062/Makefile  2011-03-06 14:19:07.933096517 +0100
+--- a/Makefile
++++ b/Makefile
 @@ -1,8 +1,15 @@
 -SHELL = /bin/sh
 +LDLIBS = -lbluetooth -lglib -liconv
@@ -24,10 +22,8 @@ Index: bemused-mpd-r062/Makefile
 +      $(CXX) $(CXXFLAGS) $(CPPFLAGS) $(LDFLAGS) $^ $(LDLIBS) -o $@
 +
 +all: bemusedlinuxserver
-Index: bemused-mpd-r062/libmpdclient.h
-===================================================================
---- bemused-mpd-r062.orig/libmpdclient.h       2008-04-28 23:03:52.000000000 +0200
-+++ bemused-mpd-r062/libmpdclient.h    2011-03-06 14:15:34.821307043 +0100
+--- a/libmpdclient.h
++++ b/libmpdclient.h
 @@ -68,11 +68,10 @@
  #define MPD_ACK_ERROR_EXIST                   56
  
@@ -55,10 +51,8 @@ Index: bemused-mpd-r062/libmpdclient.h
 +#endif
  
  #endif
-Index: bemused-mpd-r062/mpdctrl.c
-===================================================================
---- bemused-mpd-r062.orig/mpdctrl.c    2008-04-28 23:03:52.000000000 +0200
-+++ bemused-mpd-r062/mpdctrl.c 2011-03-06 14:15:34.821307043 +0100
+--- a/mpdctrl.c
++++ b/mpdctrl.c
 @@ -59,6 +59,9 @@
  
  #define ERROR_DISPLAY 5