summaryrefslogtreecommitdiff
path: root/include/platform.h
diff options
context:
space:
mode:
authorDenys Vlasenko2011-07-08 04:41:38 +0200
committerDenys Vlasenko2011-07-08 04:41:38 +0200
commit4dc35fb5b6b574552a432622274941a6e4c67476 (patch)
treebf6e586298b6392186519212e8c8ad382b52b3a7 /include/platform.h
parent46465ecf72ee5c0910d036668eba499928f3379e (diff)
downloadbusybox-4dc35fb5b6b574552a432622274941a6e4c67476.zip
busybox-4dc35fb5b6b574552a432622274941a6e4c67476.tar.gz
platform.h: tweaks for cygwin
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include/platform.h')
-rw-r--r--include/platform.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/include/platform.h b/include/platform.h
index 60864c9..07b1faa 100644
--- a/include/platform.h
+++ b/include/platform.h
@@ -116,7 +116,7 @@
/* Make all declarations hidden (-fvisibility flag only affects definitions) */
/* (don't include system headers after this until corresponding pop!) */
-#if __GNUC_PREREQ(4,1)
+#if __GNUC_PREREQ(4,1) && !defined(__CYGWIN__)
# define PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN _Pragma("GCC visibility push(hidden)")
# define POP_SAVED_FUNCTION_VISIBILITY _Pragma("GCC visibility pop")
#else
@@ -329,6 +329,10 @@ typedef unsigned smalluint;
# endif
#endif
+#if defined(__CYGWIN__)
+# define MAXSYMLINKS SYMLOOP_MAX
+#endif
+
/* ---- Who misses what? ------------------------------------ */
@@ -389,6 +393,15 @@ typedef unsigned smalluint;
# undef HAVE_NET_ETHERNET_H
#endif
+#if defined(__CYGWIN__)
+# undef HAVE_CLEARENV
+# undef HAVE_FDPRINTF
+# undef HAVE_MEMRCHR
+# undef HAVE_PTSNAME_R
+# undef HAVE_STRVERSCMP
+# undef HAVE_UNLOCKED_LINE_OPS
+#endif
+
/* These BSD-derived OSes share many similarities */
#if (defined __digital__ && defined __unix__) \
|| defined __APPLE__ \