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:
Diffstat (limited to 'winsup/cygwin/include/sys/file.h')
-rw-r--r--winsup/cygwin/include/sys/file.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/winsup/cygwin/include/sys/file.h b/winsup/cygwin/include/sys/file.h
index 9b72ee9c2..6dabeb70c 100644
--- a/winsup/cygwin/include/sys/file.h
+++ b/winsup/cygwin/include/sys/file.h
@@ -39,8 +39,17 @@
#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
#endif