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