diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-07-01 06:37:48 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-07-01 06:37:48 +0000 |
commit | f4d5ba122c54831d5241447aa551eafbbbc795d2 (patch) | |
tree | 6015ee443d79c774549b6cb62ef0d2c7a85a5d2b /missing/crypt.c | |
parent | a4d4bf80162004c82a7df0960d7787e80bb238d9 (diff) | |
download | ruby-f4d5ba122c54831d5241447aa551eafbbbc795d2.tar.gz ruby-f4d5ba122c54831d5241447aa551eafbbbc795d2.tar.xz ruby-f4d5ba122c54831d5241447aa551eafbbbc795d2.zip |
* missing/crypt.c: modified to make it compilable on platforms
other than BSD. [ruby-dev:26430]
* missing/erf.c: ditto. code from <exp.c> merged.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8689 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'missing/crypt.c')
-rw-r--r-- | missing/crypt.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/missing/crypt.c b/missing/crypt.c index ee5af0c67..486df5050 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 <unistd.h> +#endif #include <limits.h> +#ifdef HAVE_PWD_H #include <pwd.h> +#endif +#include <stdio.h> +#ifndef _PASSWORD_EFMT1 +#define _PASSWORD_EFMT1 '_' +#endif /* * UNIX password, and DES, encryption. |