From: Florian Fainelli Date: Thu, 27 Aug 2009 08:18:01 +0000 (+0000) Subject: mode cygwin fixes for scripts/mod/file2alias X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=06f095a73a786cfcb3a89000520f092977024136;p=openwrt%2Fstaging%2Flinusw.git mode cygwin fixes for scripts/mod/file2alias SVN-Revision: 17420 --- diff --git a/target/linux/generic-2.6/patches-2.6.21/902-darwin_scripts_include.patch b/target/linux/generic-2.6/patches-2.6.21/902-darwin_scripts_include.patch index ae7a77e16f..8c22743d74 100644 --- a/target/linux/generic-2.6/patches-2.6.21/902-darwin_scripts_include.patch +++ b/target/linux/generic-2.6/patches-2.6.21/902-darwin_scripts_include.patch @@ -116,7 +116,7 @@ #include #include #include -+#ifndef __APPLE__ ++#if !(defined(__APPLE__) || defined(__CYGWIN__)) #include +#else +#include "../../../../../tools/sstrip/include/elf.h" diff --git a/target/linux/generic-2.6/patches-2.6.25/902-darwin_scripts_include.patch b/target/linux/generic-2.6/patches-2.6.25/902-darwin_scripts_include.patch index 45a3f27006..88c0421f03 100644 --- a/target/linux/generic-2.6/patches-2.6.25/902-darwin_scripts_include.patch +++ b/target/linux/generic-2.6/patches-2.6.25/902-darwin_scripts_include.patch @@ -92,7 +92,7 @@ #include #include #include -+#ifndef __APPLE__ ++#if !(defined(__APPLE__) || defined(__CYGWIN__)) #include +#else +#include "../../../../../tools/sstrip/include/elf.h" diff --git a/target/linux/generic-2.6/patches-2.6.27/902-darwin_scripts_include.patch b/target/linux/generic-2.6/patches-2.6.27/902-darwin_scripts_include.patch index 96fffc0660..b59027d7c7 100644 --- a/target/linux/generic-2.6/patches-2.6.27/902-darwin_scripts_include.patch +++ b/target/linux/generic-2.6/patches-2.6.27/902-darwin_scripts_include.patch @@ -92,7 +92,7 @@ #include #include #include -+#ifndef __APPLE__ ++#if !(defined(__APPLE__) || defined(__CYGWIN__)) #include +#else +#include "../../../../../tools/sstrip/include/elf.h" diff --git a/target/linux/generic-2.6/patches-2.6.28/902-darwin_scripts_include.patch b/target/linux/generic-2.6/patches-2.6.28/902-darwin_scripts_include.patch index c5aadd1ad1..4ff1536773 100644 --- a/target/linux/generic-2.6/patches-2.6.28/902-darwin_scripts_include.patch +++ b/target/linux/generic-2.6/patches-2.6.28/902-darwin_scripts_include.patch @@ -92,7 +92,7 @@ #include #include #include -+#ifndef __APPLE__ ++#if !(defined(__APPLE__) || defined(__CYGWIN__)) #include +#else +#include "../../../../../tools/sstrip/include/elf.h" diff --git a/target/linux/generic-2.6/patches-2.6.30/902-darwin_scripts_include.patch b/target/linux/generic-2.6/patches-2.6.30/902-darwin_scripts_include.patch index c5aadd1ad1..4ff1536773 100644 --- a/target/linux/generic-2.6/patches-2.6.30/902-darwin_scripts_include.patch +++ b/target/linux/generic-2.6/patches-2.6.30/902-darwin_scripts_include.patch @@ -92,7 +92,7 @@ #include #include #include -+#ifndef __APPLE__ ++#if !(defined(__APPLE__) || defined(__CYGWIN__)) #include +#else +#include "../../../../../tools/sstrip/include/elf.h" diff --git a/target/linux/generic-2.6/patches-2.6.31/902-darwin_scripts_include.patch b/target/linux/generic-2.6/patches-2.6.31/902-darwin_scripts_include.patch index e98a10d106..fc64c17d52 100644 --- a/target/linux/generic-2.6/patches-2.6.31/902-darwin_scripts_include.patch +++ b/target/linux/generic-2.6/patches-2.6.31/902-darwin_scripts_include.patch @@ -92,7 +92,7 @@ #include #include #include -+#ifndef __APPLE__ ++#if !(defined(__APPLE__) || defined(__CYGWIN__)) #include +#else +#include "../../../../../tools/sstrip/include/elf.h"