This is the mail archive of the
cygwin
mailing list for the Cygwin project.
missing extern "C" in sys/file.h
- From: Anthony Heading <anthony at ajrh dot net>
- To: cygwin at cygwin dot com
- Date: Tue, 05 Aug 2014 23:54:09 -0400
- Subject: missing extern "C" in sys/file.h
- Authentication-results: sourceware.org; auth=none
I guess this patch is right.
Rgds
A
--- sys/file.h.Orig 2014-08-05 23:46:27.199694300 -0400
+++ sys/file.h 2014-08-05 23:46:55.919734500 -0400
@@ -39,7 +39,14 @@
#define LOCK_NB 0x04 /* don't block when
locking */
#define LOCK_UN 0x08 /* unlock file */
+#ifdef __cplusplus
+extern "C"
+{
+#endif
extern int flock _PARAMS ((int, int));
+#ifdef __cplusplus
+}
+#endif
#endif
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple