From c45643d618e35ec2fe91438df15abd4f3c0d85ca Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Wed, 21 Aug 2019 21:33:05 +0200 Subject: Remove configure detection of crypt() crypt() hasn't been needed since crypt detection was removed from PostgreSQL, so these configure checks are not necessary. Reviewed-by: Tom Lane Discussion: https://www.postgresql.org/message-id/flat/21f88934-f00c-27f6-a9d8-7ea06d317781%402ndquadrant.com --- src/include/pg_config.h.in | 6 ------ src/include/pg_config.h.win32 | 6 ------ src/include/port.h | 3 --- 3 files changed, 15 deletions(-) (limited to 'src/include') diff --git a/src/include/pg_config.h.in b/src/include/pg_config.h.in index 512213aa32f..d876926c21a 100644 --- a/src/include/pg_config.h.in +++ b/src/include/pg_config.h.in @@ -123,15 +123,9 @@ /* Define to 1 if you have the header file. */ #undef HAVE_CRTDEFS_H -/* Define to 1 if you have the `crypt' function. */ -#undef HAVE_CRYPT - /* Define to 1 if you have the `CRYPTO_lock' function. */ #undef HAVE_CRYPTO_LOCK -/* Define to 1 if you have the header file. */ -#undef HAVE_CRYPT_H - /* Define to 1 if you have the declaration of `fdatasync', and to 0 if you don't. */ #undef HAVE_DECL_FDATASYNC diff --git a/src/include/pg_config.h.win32 b/src/include/pg_config.h.win32 index 2d903c82b80..fc50528590a 100644 --- a/src/include/pg_config.h.win32 +++ b/src/include/pg_config.h.win32 @@ -93,12 +93,6 @@ /* Define to 1 if your compiler handles computed gotos. */ /* #undef HAVE_COMPUTED_GOTO */ -/* Define to 1 if you have the `crypt' function. */ -/* #undef HAVE_CRYPT */ - -/* Define to 1 if you have the header file. */ -/* #undef HAVE_CRYPT_H */ - /* Define to 1 if you have the declaration of `fdatasync', and to 0 if you don't. */ #define HAVE_DECL_FDATASYNC 0 diff --git a/src/include/port.h b/src/include/port.h index ff527952ab9..55619d893ce 100644 --- a/src/include/port.h +++ b/src/include/port.h @@ -330,9 +330,6 @@ extern int gettimeofday(struct timeval *tp, struct timezone *tzp); * Default "extern" declarations or macro substitutes for library routines. * When necessary, these routines are provided by files in src/port/. */ -#ifndef HAVE_CRYPT -extern char *crypt(const char *key, const char *setting); -#endif /* WIN32 handled in port/win32_port.h */ #ifndef WIN32 -- cgit v1.2.3