[kernel] mode cygwin fixes for scripts/mod/file2alias

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17420 3c298f89-4303-0410-b956-a3cf2f4a3e73
master
Florian Fainelli 2009-08-27 08:18:01 +00:00
parent 30c5ba9138
commit 38cfa6bd49
6 changed files with 6 additions and 6 deletions

View File

@ -116,7 +116,7 @@
#include <sys/mman.h> #include <sys/mman.h>
#include <fcntl.h> #include <fcntl.h>
#include <unistd.h> #include <unistd.h>
+#ifndef __APPLE__ +#if !(defined(__APPLE__) || defined(__CYGWIN__))
#include <elf.h> #include <elf.h>
+#else +#else
+#include "../../../../../tools/sstrip/include/elf.h" +#include "../../../../../tools/sstrip/include/elf.h"

View File

@ -92,7 +92,7 @@
#include <sys/mman.h> #include <sys/mman.h>
#include <fcntl.h> #include <fcntl.h>
#include <unistd.h> #include <unistd.h>
+#ifndef __APPLE__ +#if !(defined(__APPLE__) || defined(__CYGWIN__))
#include <elf.h> #include <elf.h>
+#else +#else
+#include "../../../../../tools/sstrip/include/elf.h" +#include "../../../../../tools/sstrip/include/elf.h"

View File

@ -92,7 +92,7 @@
#include <sys/mman.h> #include <sys/mman.h>
#include <fcntl.h> #include <fcntl.h>
#include <unistd.h> #include <unistd.h>
+#ifndef __APPLE__ +#if !(defined(__APPLE__) || defined(__CYGWIN__))
#include <elf.h> #include <elf.h>
+#else +#else
+#include "../../../../../tools/sstrip/include/elf.h" +#include "../../../../../tools/sstrip/include/elf.h"

View File

@ -92,7 +92,7 @@
#include <sys/mman.h> #include <sys/mman.h>
#include <fcntl.h> #include <fcntl.h>
#include <unistd.h> #include <unistd.h>
+#ifndef __APPLE__ +#if !(defined(__APPLE__) || defined(__CYGWIN__))
#include <elf.h> #include <elf.h>
+#else +#else
+#include "../../../../../tools/sstrip/include/elf.h" +#include "../../../../../tools/sstrip/include/elf.h"

View File

@ -92,7 +92,7 @@
#include <sys/mman.h> #include <sys/mman.h>
#include <fcntl.h> #include <fcntl.h>
#include <unistd.h> #include <unistd.h>
+#ifndef __APPLE__ +#if !(defined(__APPLE__) || defined(__CYGWIN__))
#include <elf.h> #include <elf.h>
+#else +#else
+#include "../../../../../tools/sstrip/include/elf.h" +#include "../../../../../tools/sstrip/include/elf.h"

View File

@ -92,7 +92,7 @@
#include <sys/mman.h> #include <sys/mman.h>
#include <fcntl.h> #include <fcntl.h>
#include <unistd.h> #include <unistd.h>
+#ifndef __APPLE__ +#if !(defined(__APPLE__) || defined(__CYGWIN__))
#include <elf.h> #include <elf.h>
+#else +#else
+#include "../../../../../tools/sstrip/include/elf.h" +#include "../../../../../tools/sstrip/include/elf.h"