amoralej / rpms / 389-ds-base

Forked from rpms/389-ds-base 5 years ago
Clone

Blame SOURCES/0047-Ticket-48864-Fix-FreeIPA-build.patch

b69e47
From f007ba9e5ac0bbeee1c1d6b4e292b293629a838c Mon Sep 17 00:00:00 2001
b69e47
From: Viktor Ashirov <vashirov@redhat.com>
b69e47
Date: Wed, 17 May 2017 22:03:54 +0200
b69e47
Subject: [PATCH] Issue 48864 - Fix FreeIPA build
b69e47
b69e47
Bug Description:
b69e47
FreeIPA build fails because of incorrect include files
b69e47
b69e47
https://pagure.io/389-ds-base/issue/48864
b69e47
b69e47
Reviewed by: mreynolds (Thanks!)
b69e47
---
b69e47
 ldap/servers/slapd/slapi-plugin.h | 2 +-
b69e47
 ldap/servers/slapd/slapi_pal.h    | 2 ++
b69e47
 2 files changed, 3 insertions(+), 1 deletion(-)
b69e47
b69e47
diff --git a/ldap/servers/slapd/slapi-plugin.h b/ldap/servers/slapd/slapi-plugin.h
b69e47
index ec8917d..4084945 100644
b69e47
--- a/ldap/servers/slapd/slapi-plugin.h
b69e47
+++ b/ldap/servers/slapd/slapi-plugin.h
b69e47
@@ -28,7 +28,7 @@ extern "C" {
b69e47
 #endif
b69e47
 
b69e47
 /* Provides our int types and platform specific requirements. */
b69e47
-#include <slapi_pal.h>
b69e47
+#include "slapi_pal.h"
b69e47
 
b69e47
 #include "prtypes.h"
b69e47
 #include "ldap.h"
b69e47
diff --git a/ldap/servers/slapd/slapi_pal.h b/ldap/servers/slapd/slapi_pal.h
b69e47
index cb61d84..307679d 100644
b69e47
--- a/ldap/servers/slapd/slapi_pal.h
b69e47
+++ b/ldap/servers/slapd/slapi_pal.h
b69e47
@@ -19,7 +19,9 @@
b69e47
 
b69e47
 #pragma once
b69e47
 
b69e47
+#ifdef HAVE_CONFIG_H
b69e47
 #include <config.h>
b69e47
+#endif
b69e47
 
b69e47
 #ifdef HAVE_INTTYPES_H
b69e47
 #include <inttypes.h>
b69e47
-- 
b69e47
2.9.4
b69e47