This is the mail archive of the
cygwin-apps
mailing list for the Cygwin project.
[PATCH crypt 4/8] Guard GNU extensions in header, declare other functions
- From: Yaakov Selkowitz <yselkowi at redhat dot com>
- To: cygwin-apps at cygwin dot com
- Date: Thu, 3 Aug 2017 21:52:54 -0500
- Subject: [PATCH crypt 4/8] Guard GNU extensions in header, declare other functions
- Authentication-results: sourceware.org; auth=none
- 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 at redhat dot com
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 308792027C
- References: <20170804025258.19248-1-yselkowi@redhat.com>
---
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