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