aboutsummaryrefslogtreecommitdiffstats
path: root/missing/crypt.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-07-01 06:37:48 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-07-01 06:37:48 +0000
commit3b53e365dc41fa15854c2f2275ea7ebc05562152 (patch)
tree6015ee443d79c774549b6cb62ef0d2c7a85a5d2b /missing/crypt.c
parentf99971051f31ebc463e005fa8be9d0b0a24a449d (diff)
downloadruby-3b53e365dc41fa15854c2f2275ea7ebc05562152.tar.gz
* 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@8689 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'missing/crypt.c')
-rw-r--r--missing/crypt.c8
1 files changed, 8 insertions, 0 deletions
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 <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.