From 0b20d00bf3910bf461fea9c3b4c3512f4ed246e8 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Wed, 6 Aug 2014 08:46:12 +0000 Subject: [PATCH] * include/sys/file.h: Add extern "C". --- winsup/cygwin/ChangeLog | 4 ++++ winsup/cygwin/include/sys/file.h | 9 +++++++++ 2 files changed, 13 insertions(+) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index d4e2be458..00d94efcc 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,7 @@ +2014-08-04 Anthony Heading + + * include/sys/file.h: Add extern "C". + 2014-08-04 Corinna Vinschen * common.din (__cxa_atexit): Export. 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