summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libgpo/gpo_fetch.c2
-rw-r--r--libgpo/gpo_ldap.c1
-rw-r--r--source4/libgpo/gpo_s4.h8
3 files changed, 8 insertions, 3 deletions
diff --git a/libgpo/gpo_fetch.c b/libgpo/gpo_fetch.c
index 7e41812789..8824a7c376 100644
--- a/libgpo/gpo_fetch.c
+++ b/libgpo/gpo_fetch.c
@@ -29,7 +29,7 @@
#include "libcli/raw/libcliraw.h"
#include "libcli/libcli_proto.h"
#include "libgpo/ads_convenience.h"
-#include "libgpo/gpo.h"
+#include "libgpo/gpo_s4.h"
#endif
/****************************************************************
diff --git a/libgpo/gpo_ldap.c b/libgpo/gpo_ldap.c
index 0959ed6b38..a884198ed5 100644
--- a/libgpo/gpo_ldap.c
+++ b/libgpo/gpo_ldap.c
@@ -20,6 +20,7 @@
#include "includes.h"
#if _SAMBA_BUILD_ == 4
#include "libgpo/gpo.h"
+#include "libgpo/gpo_s4.h"
#include "source4/libgpo/ads_convenience.h"
#endif
diff --git a/source4/libgpo/gpo_s4.h b/source4/libgpo/gpo_s4.h
index 3e5cb06bdc..f616f6bd32 100644
--- a/source4/libgpo/gpo_s4.h
+++ b/source4/libgpo/gpo_s4.h
@@ -20,8 +20,12 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef __LIBGPO_GPO_H__
-#define __LIBGPO_GPO_H__
+#ifndef __LIBGPO_GPO_S4_H__
+#define __LIBGPO_GPO_S4_H__
+
+#if _SAMBA_BUILD_ == 4
+#include "source4/libcli/libcli.h"
+#endif
NTSTATUS gpo_copy_file(TALLOC_CTX *mem_ctx,
struct smbcli_state *cli,