diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-07-01 07:23:40 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-07-01 07:23:40 +0000 |
| commit | 46baa328453939fa289bb1c853bc6e4f272c352a (patch) | |
| tree | c9c3d0f9ce9593b30b263050864e5f7a6a33f83d /missing/crypt.c | |
| parent | 7eea74f1a32dc90ed0a7774ef23e6130ffcd74c8 (diff) | |
| download | ruby-46baa328453939fa289bb1c853bc6e4f272c352a.tar.gz ruby-46baa328453939fa289bb1c853bc6e4f272c352a.tar.xz ruby-46baa328453939fa289bb1c853bc6e4f272c352a.zip | |
* missing/erf.c: need to include some headers for some platforms.
* win32/win32.h (copysign, scalb): define for compatibility with
other platforms. [ruby-dev:26430]
* 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/branches/ruby_1_8@8692 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. |
