3b7e51
From e4d51884e3ca36b8256c33936dc31e77e0ad4736 Mon Sep 17 00:00:00 2001
3b7e51
From: Mark Reynolds <mreynolds@redhat.com>
3b7e51
Date: Tue, 8 May 2018 12:35:43 -0400
3b7e51
Subject: [PATCH] Ticket 49649
3b7e51
3b7e51
Description:  Fix crpyt.h include
3b7e51
3b7e51
https://pagure.io/389-ds-base/issue/49649
3b7e51
3b7e51
Reviewed by: mreynolds(one line commit rule)
3b7e51
3b7e51
(cherry picked from commit 2817f0c49401056835a79aafd8f8d4edc9113d1d)
3b7e51
---
3b7e51
 ldap/servers/plugins/pwdstorage/crypt_pwd.c | 10 +---------
3b7e51
 1 file changed, 1 insertion(+), 9 deletions(-)
3b7e51
3b7e51
diff --git a/ldap/servers/plugins/pwdstorage/crypt_pwd.c b/ldap/servers/plugins/pwdstorage/crypt_pwd.c
3b7e51
index 0dccd1b51..19894bd80 100644
3b7e51
--- a/ldap/servers/plugins/pwdstorage/crypt_pwd.c
3b7e51
+++ b/ldap/servers/plugins/pwdstorage/crypt_pwd.c
3b7e51
@@ -20,15 +20,7 @@
3b7e51
 #include <string.h>
3b7e51
 #include <sys/types.h>
3b7e51
 #include <sys/socket.h>
3b7e51
-#if defined(hpux) || defined(LINUX) || defined(__FreeBSD__)
3b7e51
-#ifndef __USE_XOPEN
3b7e51
-#define __USE_XOPEN /* linux */
3b7e51
-#endif              /* __USE_XOPEN */
3b7e51
-#include <unistd.h>
3b7e51
-#else /* hpux */
3b7e51
-#include <crypt.h>
3b7e51
-#endif /* hpux */
3b7e51
-
3b7e51
+#include <crypt.h>  /* for crypt_r */
3b7e51
 #include "pwdstorage.h"
3b7e51
 
3b7e51
 static PRLock *cryptlock = NULL; /* Some implementations of crypt are not thread safe.  ie. ours & Irix */
3b7e51
-- 
3b7e51
2.13.6
3b7e51