OSDN Git Service

* include/sys/cygwin.h: Don't define cygwin-specific things if !__CYGWIN__.
authorcgf <cgf>
Mon, 1 Sep 2003 02:26:27 +0000 (02:26 +0000)
committercgf <cgf>
Mon, 1 Sep 2003 02:26:27 +0000 (02:26 +0000)
winsup/cygwin/ChangeLog
winsup/cygwin/include/sys/cygwin.h

index 3a02b3b..847a3c7 100644 (file)
@@ -1,5 +1,10 @@
 2003-08-31  Christopher Faylor  <cgf@redhat.com>
 
+       * include/sys/cygwin.h: Don't define cygwin-specific things if
+       !__CYGWIN__.
+
+2003-08-31  Christopher Faylor  <cgf@redhat.com>
+
        * cygheap.cc (cygheap_init): Allocate space for sigaction array in
        cygheap.
        * cygheap.h (cygheap_types): Add HEAP_SIGS.
index ed0aa8d..e117175 100644 (file)
@@ -207,6 +207,7 @@ extern void cygwin_set_impersonation_token (const HANDLE);
 extern int cygwin32_attach_handle_to_fd (char *, int, HANDLE, mode_t, DWORD);
 extern int cygwin_attach_handle_to_fd (char *, int, HANDLE, mode_t, DWORD);
 
+#ifdef __CYGWIN__
 #include <sys/resource.h>
 
 #define TTY_CONSOLE    0x40000000
@@ -250,11 +251,10 @@ struct external_pinfo
   __uid32_t uid32;
   __gid32_t gid32;
 };
-
+#endif /*__CYGWIN__*/
 #endif /*WINVER*/
 
 #ifdef __cplusplus
 };
 #endif
-
 #endif /* _SYS_CYGWIN_H */