Mercurial > cpython-lru_cache-weakref
diff Modules/cryptmodule.c @ 39043:c67b23397f30 legacy-trunk
Patch #1516912: improve Modules support for OpenVMS.
| author | Neal Norwitz <nnorwitz@gmail.com> |
|---|---|
| date | Mon, 10 Jul 2006 01:18:57 +0000 |
| parents | f66b3a3509c7 |
| children | fd25030223b0 94f64f11fdd0 |
line wrap: on
line diff
--- a/Modules/cryptmodule.c Mon Jul 10 00:23:17 2006 +0000 +++ b/Modules/cryptmodule.c Mon Jul 10 01:18:57 2006 +0000 @@ -5,6 +5,9 @@ #include <sys/types.h> +#ifdef __VMS +#include <openssl/des.h> +#endif /* Module crypt */ @@ -12,7 +15,9 @@ static PyObject *crypt_crypt(PyObject *self, PyObject *args) { char *word, *salt; +#ifndef __VMS extern char * crypt(const char *, const char *); +#endif if (!PyArg_ParseTuple(args, "ss:crypt", &word, &salt)) { return NULL;
