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