[kernel] mode cygwin fixes for scripts/mod/file2alias
[openwrt/svn-archive/archive.git] / target / linux / generic-2.6 / patches-2.6.30 / 902-darwin_scripts_include.patch
index c5aadd1ad18b54025e865170cc712b69b44af3ba..4ff1536773fcfe7a54e7766c6fe6fd42c2fe02b4 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"