Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2012-11-16 21:35:14 +0400
committerCorinna Vinschen <corinna@vinschen.de>2012-11-16 21:35:14 +0400
commitbd249f0177d2e214f04724330733840884bd27cf (patch)
tree3da4cdb55d69e34532690935e352d5b5be4fd251 /winsup/cygwin/include/mntent.h
parent5c63c9b570e7eff750a8a8c72ccfa5cbffa20a9a (diff)
* include/mntent.h: Only include paths.h when building for Cygwin.
Add comment to explain why.
Diffstat (limited to 'winsup/cygwin/include/mntent.h')
-rw-r--r--winsup/cygwin/include/mntent.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/winsup/cygwin/include/mntent.h b/winsup/cygwin/include/mntent.h
index 5fb8e3a70..db87904ef 100644
--- a/winsup/cygwin/include/mntent.h
+++ b/winsup/cygwin/include/mntent.h
@@ -1,6 +1,6 @@
/* mntent.h
- Copyright 1996, 1998, 1999, 2000, 2001, 2006, 2009, 2010 Red Hat, Inc.
+ Copyright 1996, 1998, 1999, 2000, 2001, 2006, 2009, 2010, 2012 Red Hat, Inc.
This file is part of Cygwin.
@@ -15,8 +15,6 @@ details. */
extern "C" {
#endif
-#include <paths.h>
-
struct mntent
{
char *mnt_fsname;
@@ -35,6 +33,12 @@ struct mntent *getmntent_r (FILE *, struct mntent *, char *, int);
int endmntent (FILE *__filep);
#endif
+#ifdef __CYGWIN__
+/* Only include paths.h if building for Cygwin. This avoids including
+ newlib headers when building the native tools in winsup/utils. */
+
+#include <paths.h>
+
/* The following two defines are deprecated. Use the equivalent
names from paths.h instead. */
#ifndef MNTTAB
@@ -48,6 +52,8 @@ int endmntent (FILE *__filep);
#define MOUNTED _PATH_MOUNTED
#endif
+#endif /* __CYGWIN__ */
+
#ifdef __cplusplus
};
#endif