[kernel] mode cygwin fixes for scripts/mod/file2alias
authorFlorian Fainelli <florian@openwrt.org>
Thu, 27 Aug 2009 08:18:01 +0000 (08:18 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Thu, 27 Aug 2009 08:18:01 +0000 (08:18 +0000)
SVN-Revision: 17420

target/linux/generic-2.6/patches-2.6.21/902-darwin_scripts_include.patch
target/linux/generic-2.6/patches-2.6.25/902-darwin_scripts_include.patch
target/linux/generic-2.6/patches-2.6.27/902-darwin_scripts_include.patch
target/linux/generic-2.6/patches-2.6.28/902-darwin_scripts_include.patch
target/linux/generic-2.6/patches-2.6.30/902-darwin_scripts_include.patch
target/linux/generic-2.6/patches-2.6.31/902-darwin_scripts_include.patch

index ae7a77e..8c22743 100644 (file)
  #include <sys/mman.h>
  #include <fcntl.h>
  #include <unistd.h>
-+#ifndef __APPLE__
++#if !(defined(__APPLE__) || defined(__CYGWIN__))
  #include <elf.h>
 +#else
 +#include "../../../../../tools/sstrip/include/elf.h"
index 45a3f27..88c0421 100644 (file)
@@ -92,7 +92,7 @@
  #include <sys/mman.h>
  #include <fcntl.h>
  #include <unistd.h>
-+#ifndef __APPLE__
++#if !(defined(__APPLE__) || defined(__CYGWIN__))
  #include <elf.h>
 +#else
 +#include "../../../../../tools/sstrip/include/elf.h"
index 96fffc0..b59027d 100644 (file)
@@ -92,7 +92,7 @@
  #include <sys/mman.h>
  #include <fcntl.h>
  #include <unistd.h>
-+#ifndef __APPLE__
++#if !(defined(__APPLE__) || defined(__CYGWIN__))
  #include <elf.h>
 +#else
 +#include "../../../../../tools/sstrip/include/elf.h"
index c5aadd1..4ff1536 100644 (file)
@@ -92,7 +92,7 @@
  #include <sys/mman.h>
  #include <fcntl.h>
  #include <unistd.h>
-+#ifndef __APPLE__
++#if !(defined(__APPLE__) || defined(__CYGWIN__))
  #include <elf.h>
 +#else
 +#include "../../../../../tools/sstrip/include/elf.h"
index c5aadd1..4ff1536 100644 (file)
@@ -92,7 +92,7 @@
  #include <sys/mman.h>
  #include <fcntl.h>
  #include <unistd.h>
-+#ifndef __APPLE__
++#if !(defined(__APPLE__) || defined(__CYGWIN__))
  #include <elf.h>
 +#else
 +#include "../../../../../tools/sstrip/include/elf.h"
index e98a10d..fc64c17 100644 (file)
@@ -92,7 +92,7 @@
  #include <sys/mman.h>
  #include <fcntl.h>
  #include <unistd.h>
-+#ifndef __APPLE__
++#if !(defined(__APPLE__) || defined(__CYGWIN__))
  #include <elf.h>
 +#else
 +#include "../../../../../tools/sstrip/include/elf.h"