[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 45a3f2700612dba999a96b28848669251e3218b7..88c0421f03ca1c86d13248acc3b6c2857e1b1367 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"