delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/08/05/23:54:37

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:from:to:mime-version
:content-transfer-encoding:content-type:subject:date; q=dns; s=
default; b=gzxE2LL0ESlYjWZ3mQl3rY3xfeGDJQ3VQGdGRva9Cb9zIOKvOkSfV
ustRYcisI3CKJJJzSzpGGRbM9kyClZ3G0rqdGofSmOktJJsZ4TkzNyaAl35HUIYt
7l12zWC1rEOmYyKrmaqBpt5iJC4QEtXVVA18ho6l2b2XCEKwalw/rQ=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:from:to:mime-version
:content-transfer-encoding:content-type:subject:date; s=default;
bh=X2A1PKISTdftLKZT/jgd4+aU9wM=; b=wmAbkJ6fXpfRNO0x7tVEOIuL1fDn
Tfp+/n2DyyGZTWXHQurf2XBrpkVpsDz5rjSG6bUr+jgv0hMJfyqJxrSZtBx3lSyN
ZOhl1PkRf6VUGUQRHA+rTGrg0m3tfeSGjMTpy73r9J7l6tkUj6XbcuCFERzS8qZN
EVbHPeVWdiRJ1LY=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2
X-HELO: out3-smtp.messagingengine.com
Message-Id: <1407297249.3606977.149614053.402F576E@webmail.messagingengine.com>
From: Anthony Heading <anthony AT ajrh DOT net>
To: cygwin AT cygwin DOT com
MIME-Version: 1.0
Subject: missing extern "C" in sys/file.h
Date: Tue, 05 Aug 2014 23:54:09 -0400

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019