This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: missing extern "C" in sys/file.h


On Aug  5 23:54, Anthony Heading wrote:
> I guess this patch is right.

You guessed right.  Patch applied.


Thanks,
Corinna

> --- 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

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

Attachment: pgpyTOQp9hHS1.pgp
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]