summaryrefslogtreecommitdiff
path: root/include/unistd.h
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-06-05 13:46:47 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-06-05 13:46:47 +0000
commit07beb34d51523f7f30e354ef08a802ed79cf09da (patch)
tree544c7c04669d4793e5e228aaa29123f4c9922521 /include/unistd.h
parent64ba3e5e0836bde4e85d6d2fdd133e2d37211e86 (diff)
- make libcrypt optional. Untested.
Diffstat (limited to 'include/unistd.h')
-rw-r--r--include/unistd.h2
1 files changed, 2 insertions, 0 deletions
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