boblightd: add patch to build with gcc-4.7

this fixes the following build error:
  clients/flagmanager.cpp:88:3: error: 'opterr' was not declared in this scope
  clients/flagmanager.cpp:90:49: error: 'getopt' was not declared in this scope
  ..
This commit is contained in:
Stefan Saraev 2012-04-13 21:41:41 +03:00
parent 27a462853c
commit aac212f307

View File

@ -0,0 +1,13 @@
diff --git a/src/clients/flagmanager.cpp b/src/clients/flagmanager.cpp
index d9f3cbf..82eb978 100644
--- a/src/clients/flagmanager.cpp
+++ b/src/clients/flagmanager.cpp
@@ -25,6 +25,8 @@
#define BOBLIGHT_DLOPEN_EXTERN
#include "../lib/boblight.h"
+#include <unistd.h>
+
using namespace std;
//very simple, store a copy of argc and argv