From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 37653 invoked by alias); 4 Aug 2017 02:58:31 -0000 Mailing-List: contact cygwin-apps-help@cygwin.com; run by ezmlm Precedence: bulk Sender: cygwin-apps-owner@cygwin.com List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Mail-Followup-To: cygwin-apps@cygwin.com Received: (qmail 28927 invoked by uid 89); 4 Aug 2017 02:58:25 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 04 Aug 2017 02:58:24 +0000 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 308792027C for ; Fri, 4 Aug 2017 02:53:14 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 308792027C Authentication-Results: ext-mx05.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx05.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=yselkowi@redhat.com Received: from localhost.localdomain (ovpn-120-53.rdu2.redhat.com [10.10.120.53]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C24686C404 for ; Fri, 4 Aug 2017 02:53:13 +0000 (UTC) From: Yaakov Selkowitz To: cygwin-apps@cygwin.com Subject: [PATCH crypt 4/8] Guard GNU extensions in header, declare other functions Date: Fri, 04 Aug 2017 02:58:00 -0000 Message-Id: <20170804025258.19248-5-yselkowi@redhat.com> In-Reply-To: <20170804025258.19248-1-yselkowi@redhat.com> References: <20170804025258.19248-1-yselkowi@redhat.com> X-SW-Source: 2017-08/txt/msg00008.txt.bz2 --- crypt.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/crypt.h b/crypt.h index 07de216..921e45a 100644 --- a/crypt.h +++ b/crypt.h @@ -5,14 +5,21 @@ extern "C" { #endif +void encrypt(char *, int); +void setkey(char *); +char *crypt(const char *, const char *); + +#ifdef _GNU_SOURCE + struct crypt_data { int initialized; char __buf[256]; }; -char *crypt(const char *, const char *); char *crypt_r(const char *, const char *, struct crypt_data *); +#endif /* _GNU_SOURCE */ + #ifdef __cplusplus } #endif -- 2.13.2