diff --git a/srcpkgs/polybar/patches/d35abc7620c8f06618b4708d9a969dfa2f309e96.patch b/srcpkgs/polybar/patches/d35abc7620c8f06618b4708d9a969dfa2f309e96.patch
new file mode 100644
index 00000000000..6d08b408c34
--- /dev/null
+++ b/srcpkgs/polybar/patches/d35abc7620c8f06618b4708d9a969dfa2f309e96.patch
@@ -0,0 +1,27 @@
+From d35abc7620c8f06618b4708d9a969dfa2f309e96 Mon Sep 17 00:00:00 2001
+From: patrick96
+Date: Wed, 12 Jul 2017 11:22:45 +0200
+Subject: [PATCH] Remove curlbuild include
+
+Curl removed that header in 73a2fcea0b4adea6ba342cd7ed1149782c214ae3
+([1])
+http.cpp doesn't use anything from that header and compilation works for
+fine with curl 7.54.1
+
+Fixes #647
+Ref:
+[1]: https://github.com/curl/curl/commit/73a2fcea0b4adea6ba342cd7ed1149782c214ae3
+---
+ src/utils/http.cpp | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/src/utils/http.cpp b/src/utils/http.cpp
+index 365dd3be..f6fe6779 100644
+--- src/utils/http.cpp
++++ src/utils/http.cpp
+@@ -1,5 +1,4 @@
+ #include
+-#include
+ #include
+ #include
+
diff --git a/srcpkgs/polybar/template b/srcpkgs/polybar/template
index c786d49eeaa..695892afafb 100644
--- a/srcpkgs/polybar/template
+++ b/srcpkgs/polybar/template
@@ -40,6 +40,8 @@ desc_option_i3="Enable support for i3"
desc_option_mpd="Enable support for MPD"
desc_option_network="Enable support for network"
+CXXFLAGS="-Wno-error=deprecated-declarations"
+
if [ "$build_option_network" ]; then
case "$XBPS_TARGET_MACHINE" in
*-musl) CXXFLAGS+=" -D_LINUX_IF_ETHER_H" ;;