From 07beb34d51523f7f30e354ef08a802ed79cf09da Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Thu, 5 Jun 2008 13:46:47 +0000 Subject: - make libcrypt optional. Untested. --- include/unistd.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/unistd.h') diff --git a/include/unistd.h b/include/unistd.h index e0219e770..58021a5e2 100644 --- a/include/unistd.h +++ b/include/unistd.h @@ -1077,6 +1077,7 @@ extern int fdatasync (int __fildes) __THROW; /* XPG4.2 specifies that prototypes for the encryption functions must be defined here. */ #ifdef __USE_XOPEN +# if defined __UCLIBC_HAS_CRYPT__ /* Encrypt at most 8 characters from KEY using salt to perturb DES. */ extern char *crypt (__const char *__key, __const char *__salt) __THROW __nonnull ((1, 2)); @@ -1084,6 +1085,7 @@ extern char *crypt (__const char *__key, __const char *__salt) /* Encrypt data in BLOCK in place if EDFLAG is zero; otherwise decrypt block in place. */ extern void encrypt (char *__block, int __edflag) __THROW __nonnull ((1)); +# endif /* __UCLIBC_HAS_CRYPT__ */ /* Swab pairs bytes in the first N bytes of the area pointed to by -- cgit v1.2.3