From 3b53e365dc41fa15854c2f2275ea7ebc05562152 Mon Sep 17 00:00:00 2001 From: matz Date: Fri, 1 Jul 2005 06:37:48 +0000 Subject: * missing/crypt.c: modified to make it compilable on platforms other than BSD. [ruby-dev:26430] * missing/erf.c: ditto. code from merged. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8689 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- missing/crypt.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'missing/crypt.c') diff --git a/missing/crypt.c b/missing/crypt.c index ee5af0c67c..486df5050b 100644 --- a/missing/crypt.c +++ b/missing/crypt.c @@ -34,9 +34,17 @@ static char sccsid[] = "@(#)crypt.c 8.1 (Berkeley) 6/4/93"; #endif /* LIBC_SCCS and not lint */ +#ifdef HAVE_UNISTD_H #include +#endif #include +#ifdef HAVE_PWD_H #include +#endif +#include +#ifndef _PASSWORD_EFMT1 +#define _PASSWORD_EFMT1 '_' +#endif /* * UNIX password, and DES, encryption. -- cgit v1.2.3