This is the mail archive of the
cygwin-apps
mailing list for the Cygwin project.
[PATCH] crypt: fix for -Wimplicit-function-declaration
- From: "Yaakov (Cygwin/X)" <yselkowitz at users dot sourceforge dot net>
- To: cygwin-apps at cygwin dot com
- Date: Wed, 20 Nov 2013 19:08:35 -0600
- Subject: [PATCH] crypt: fix for -Wimplicit-function-declaration
- Authentication-results: sourceware.org; auth=none
Attached patch is pretty self-explanatory.
Yaakov
2013-11-20 Yaakov Selkowitz <yselkowitz@...>
* crypt.c: #include <time.h> to fix implicit declaration of time(3).
Index: crypt.c
===================================================================
RCS file: /cvs/cygwin-apps/crypt/crypt.c,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 crypt.c
--- crypt.c 7 May 2012 11:00:13 -0000 1.1.1.1
+++ crypt.c 21 Nov 2013 00:55:55 -0000
@@ -1,6 +1,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <time.h>
#include "encrypt.h"
const char *sc = "./"