aboutsummaryrefslogtreecommitdiff
path: root/include/platform.h
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2012-03-22 15:48:57 +0000
committerRon Yorston <rmy@pobox.com>2012-03-22 15:48:57 +0000
commit9db164d6e39050d09f38288c6045cd2a2cbf6d63 (patch)
treeea5dc2d28d15da0de25c197ed7d059c3656af1a0 /include/platform.h
parent1118c95535ea51961437089fc3dece5ab4ea7e1b (diff)
parentd84b175cb6948eb17f847313bf912174e2f934e1 (diff)
downloadbusybox-w32-9db164d6e39050d09f38288c6045cd2a2cbf6d63.tar.gz
busybox-w32-9db164d6e39050d09f38288c6045cd2a2cbf6d63.tar.bz2
busybox-w32-9db164d6e39050d09f38288c6045cd2a2cbf6d63.zip
Merge commit 'd84b175cb6948eb17f847313bf912174e2f934e1' into merge
Conflicts: include/platform.h
Diffstat (limited to 'include/platform.h')
-rw-r--r--include/platform.h19
1 files changed, 17 insertions, 2 deletions
diff --git a/include/platform.h b/include/platform.h
index 319ef4a9e..e22c42007 100644
--- a/include/platform.h
+++ b/include/platform.h
@@ -125,7 +125,7 @@
125 125
126/* Make all declarations hidden (-fvisibility flag only affects definitions) */ 126/* Make all declarations hidden (-fvisibility flag only affects definitions) */
127/* (don't include system headers after this until corresponding pop!) */ 127/* (don't include system headers after this until corresponding pop!) */
128#if __GNUC_PREREQ(4,1) && !ENABLE_PLATFORM_MINGW32 128#if __GNUC_PREREQ(4,1) && !defined(__CYGWIN__) && !ENABLE_PLATFORM_MINGW32
129# define PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN _Pragma("GCC visibility push(hidden)") 129# define PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN _Pragma("GCC visibility push(hidden)")
130# define POP_SAVED_FUNCTION_VISIBILITY _Pragma("GCC visibility pop") 130# define POP_SAVED_FUNCTION_VISIBILITY _Pragma("GCC visibility pop")
131#else 131#else
@@ -283,6 +283,7 @@ typedef unsigned smalluint;
283#if defined __GLIBC__ \ 283#if defined __GLIBC__ \
284 || defined __UCLIBC__ \ 284 || defined __UCLIBC__ \
285 || defined __dietlibc__ \ 285 || defined __dietlibc__ \
286 || defined __BIONIC__ \
286 || defined _NEWLIB_VERSION 287 || defined _NEWLIB_VERSION
287# include <features.h> 288# include <features.h>
288#endif 289#endif
@@ -346,6 +347,10 @@ typedef unsigned smalluint;
346# endif 347# endif
347#endif 348#endif
348 349
350#if defined(__CYGWIN__)
351# define MAXSYMLINKS SYMLOOP_MAX
352#endif
353
349 354
350/* ---- Who misses what? ------------------------------------ */ 355/* ---- Who misses what? ------------------------------------ */
351 356
@@ -423,6 +428,15 @@ typedef unsigned smalluint;
423# undef HAVE_NET_ETHERNET_H 428# undef HAVE_NET_ETHERNET_H
424#endif 429#endif
425 430
431#if defined(__CYGWIN__)
432# undef HAVE_CLEARENV
433# undef HAVE_FDPRINTF
434# undef HAVE_MEMRCHR
435# undef HAVE_PTSNAME_R
436# undef HAVE_STRVERSCMP
437# undef HAVE_UNLOCKED_LINE_OPS
438#endif
439
426/* These BSD-derived OSes share many similarities */ 440/* These BSD-derived OSes share many similarities */
427#if (defined __digital__ && defined __unix__) \ 441#if (defined __digital__ && defined __unix__) \
428 || defined __APPLE__ \ 442 || defined __APPLE__ \
@@ -515,7 +529,8 @@ extern int vasprintf(char **string_ptr, const char *format, va_list p) FAST_FUNC
515#endif 529#endif
516 530
517#ifndef HAVE_GETLINE 531#ifndef HAVE_GETLINE
518#include <stdio.h> /* for FILE */ 532# include <stdio.h> /* for FILE */
533# include <sys/types.h> /* size_t */
519extern ssize_t getline(char **lineptr, size_t *n, FILE *stream) FAST_FUNC; 534extern ssize_t getline(char **lineptr, size_t *n, FILE *stream) FAST_FUNC;
520#endif 535#endif
521 536