diff options
Diffstat (limited to 'winsup/cygwin/winsup.h')
-rw-r--r-- | winsup/cygwin/winsup.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/winsup/cygwin/winsup.h b/winsup/cygwin/winsup.h index d0b2548fc..1b73a2f52 100644 --- a/winsup/cygwin/winsup.h +++ b/winsup/cygwin/winsup.h @@ -24,6 +24,8 @@ details. */ # define memset __builtin_memset #endif +#define NO_COPY __attribute__((section(".data_cygwin_nocopy"))) + #ifdef __cplusplus #if !defined(__STDC_VERSION__) || __STDC_VERSION__ >= 199900L @@ -97,8 +99,6 @@ extern HANDLE title_mutex; /**************************** Convenience ******************************/ -#define NO_COPY __attribute__((section(".data_cygwin_nocopy"))) - /* Used when treating / and \ as equivalent. */ #define SLASH_P(ch) \ ({ \ @@ -204,6 +204,8 @@ int __stdcall __check_null_invalid_struct_errno (const void *s, unsigned sz) __a #define set_winsock_errno() __set_winsock_errno (__FUNCTION__, __LINE__) void __set_winsock_errno (const char *fn, int ln) __attribute__ ((regparm(2))); +extern bool wsock_started; + /* Printf type functions */ extern "C" void __api_fatal (const char *, ...) __attribute__ ((noreturn)); extern "C" int __small_sprintf (char *dst, const char *fmt, ...) /*__attribute__ ((regparm (2)))*/; |