This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Missing include in mntent.h
- From: Eugene Kotlyarov <ekot at narod dot ru>
- To: cygwin at cygwin dot com
- Date: Mon, 12 Jun 2006 19:58:44 +0400
- Subject: Missing include in mntent.h
- Reply-to: ekot at narod dot ru
Hello
I think #include <stdio.h> is needed in mntent.h for definition of FILE.
Here is patch for it.
--- mntent.h.old 2006-06-12 19:39:27.000000000 +0400
+++ mntent.h 2006-06-12 19:56:23.015625000 +0400
@@ -26,6 +26,7 @@
};
#ifndef _NOMNTENT_FUNCS
+#include <stdio.h> /* needed for FILE */
FILE *setmntent (const char *__filep, const char *__type);
struct mntent *getmntent (FILE *__filep);
int addmntent (FILE *__filep, const struct mntent *__mnt);
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/