Skip to content

Commit d85a0a6

Browse files
committed
More cleanups now that we have crypt().
1 parent 384bbdd commit d85a0a6

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

src/include/c.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
1313
* Portions Copyright (c) 1994, Regents of the University of California
1414
*
15-
* $Id: c.h,v 1.143 2003/05/09 16:26:29 momjian Exp $
15+
* $Id: c.h,v 1.144 2003/05/09 16:59:43 momjian Exp $
1616
*
1717
*-------------------------------------------------------------------------
1818
*/
@@ -798,6 +798,10 @@ extern int vsnprintf(char *str, size_t count, const char *fmt, va_list args);
798798
* Default "extern" declarations or macro substitutes for library routines.
799799
* When necessary, these routines are provided by files in src/port/.
800800
*/
801+
#ifndef HAVE_CRYPT
802+
char *crypt(const char *key, const char *setting);
803+
#endif
804+
801805
#ifndef HAVE_FSEEKO
802806
#define fseeko(a, b, c) fseek((a), (b), (c))
803807
#define ftello(a) ftell((a))

src/include/port/qnx4.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,5 @@ typedef unsigned char slock_t;
2626

2727
extern int isnan(double dsrc);
2828

29-
extern char *crypt(const char *, const char *);
30-
3129
extern long random(void);
3230
extern void srandom(unsigned int seed);

src/interfaces/libpq/win32.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,6 @@
2727
#define vsnprintf(a,b,c,d) _vsnprintf(a,b,c,d)
2828
#define snprintf _snprintf
2929

30-
/*
31-
* crypt not available (yet)
32-
*/
33-
#define crypt(a,b) ((char *) a)
34-
3530
#undef EAGAIN /* doesn't apply on sockets */
3631
#undef EINTR
3732
#define EINTR WSAEINTR

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy