Try this: --- libproxy.spec~ 2012-02-28 04:15:12.000000000 -0500 +++ libproxy.spec 2012-02-28 15:06:22.000000000 -0500 @@ -23,6 +23,7 @@ Patch0: libproxy-0.4.7-js185.patch Patch1: libproxy-0.4.7-url-pac.patch Patch2: libproxy-0.4.7-webkit.patch +Patch3: libproxy-0.4.7-f17.patch BuildRequires: python-devel BuildRequires: libmodman-devel >= 2.0.1 @@ -177,6 +178,7 @@ %patch0 -p1 -b .js185 %patch1 -p1 -b .url-pac %patch2 -p1 -b .webkit +%patch3 -p1 -b .f17 %build %{cmake} \ libproxy-0.4.7-f17.patch diff -U 3 -p -r libproxy-0.4.7.orig/libproxy/modules/config_sysconfig.cpp libproxy-0.4.7/libproxy/modules/config_sysconfig.cpp --- libproxy-0.4.7.orig/libproxy/modules/config_sysconfig.cpp 2011-06-06 17:44:37.000000000 -0400 +++ libproxy-0.4.7/libproxy/modules/config_sysconfig.cpp 2012-02-28 15:11:01.000000000 -0500 @@ -18,6 +18,7 @@ ******************************************************************************/ #include <sys/stat.h> +#include <unistd.h> #include <cstdlib> #include <map> #include <fstream> diff -U 3 -p -r libproxy-0.4.7.orig/libproxy/modules/pacrunner_mozjs.cpp libproxy-0.4.7/libproxy/modules/pacrunner_mozjs.cpp --- libproxy-0.4.7.orig/libproxy/modules/pacrunner_mozjs.cpp 2011-06-06 17:44:37.000000000 -0400 +++ libproxy-0.4.7/libproxy/modules/pacrunner_mozjs.cpp 2012-02-28 15:15:58.000000000 -0500 @@ -17,6 +17,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ******************************************************************************/ +#include <unistd.h> // for ::gethostname() #include <cstring> // ? #include "../extension_pacrunner.hpp" diff -U 3 -p -r libproxy-0.4.7.orig/libproxy/modules/pacrunner_webkit.cpp libproxy-0.4.7/libproxy/modules/pacrunner_webkit.cpp --- libproxy-0.4.7.orig/libproxy/modules/pacrunner_webkit.cpp 2011-06-06 17:44:37.000000000 -0400 +++ libproxy-0.4.7/libproxy/modules/pacrunner_webkit.cpp 2012-02-28 15:17:12.000000000 -0500 @@ -17,6 +17,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ******************************************************************************/ +#include <unistd.h> // for ::gethostname() #include "../extension_pacrunner.hpp" using namespace libproxy; diff -U 3 -p -r libproxy-0.4.7.orig/libproxy/url.cpp libproxy-0.4.7/libproxy/url.cpp --- libproxy-0.4.7.orig/libproxy/url.cpp 2012-02-28 15:00:34.000000000 -0500 +++ libproxy-0.4.7/libproxy/url.cpp 2012-02-28 15:11:02.000000000 -0500 @@ -27,6 +27,7 @@ #define close _close #endif #include <fcntl.h> // For ::open() +#include <unistd.h> // For ::read() and ::close() #include <cstring> // For memcpy() #include <sstream> // For int/string conversion (using stringstream) #include <cstdio> // For sscanf() Only in libproxy-0.4.7/libproxy: url.cpp~ _______________________________________________ arm mailing list arm@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/arm