config: Fix crypt prototype on RedHat Linux.
[vlendec/samba-autobuild/.git] / source3 / include / includes.h
index fdfd1d3d37a21981b20398f4be88d4812a7b3f60..59d43d8a365882381dc78677ab3c776e690c94fe 100644 (file)
@@ -674,6 +674,11 @@ int setresuid(uid_t ruid, uid_t euid, uid_t suid);
 int setresgid(gid_t rgid, gid_t egid, gid_t sgid);
 #endif
 
+#if (defined(HAVE_CRYPT) && !defined(HAVE_CRYPT_DECL))
+/* stupid glibc */
+int crypt(const char *key, const char *salt);
+#endif
+
 #if !defined(HAVE_BZERO) && defined(HAVE_MEMSET)
 #define bzero(a,b) memset((a),'\0',(b))
 #endif