X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=servers%2Fslapd%2Fback-perl%2Fperl_back.h;h=fe1b9a635754b332a96a1f1cbf191d3bf2de280f;hb=d4124e0e031f5b76a80f9c25a04146d334bcf898;hp=c834457e6ab018a3eb36e4e6231dade6336f0235;hpb=da6d557cdc2c62e36ba8a2c7f4f3c97ad8b630f1;p=openldap
diff --git a/servers/slapd/back-perl/perl_back.h b/servers/slapd/back-perl/perl_back.h
index c834457e6a..fe1b9a6357 100644
--- a/servers/slapd/back-perl/perl_back.h
+++ b/servers/slapd/back-perl/perl_back.h
@@ -1,7 +1,7 @@
/* $OpenLDAP$ */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1999-2003 The OpenLDAP Foundation.
+ * Copyright 1999-2008 The OpenLDAP Foundation.
* Portions Copyright 1999 John C. Quillan.
* Portions Copyright 2002 myinternet Limited.
* All rights reserved.
@@ -18,6 +18,15 @@
#ifndef PERL_BACK_H
#define PERL_BACK_H 1
+#include
+#include
+#undef _ /* #defined by both Perl and ac/localize.h */
+#include "asperl_undefs.h"
+
+#include "portable.h"
+
+#include "slap.h"
+
LDAP_BEGIN_DECL
/*
@@ -39,7 +48,7 @@ extern ldap_pvt_thread_mutex_t perl_interpreter_mutex;
# define na PL_na
#endif
-#ifdef HAVE_WIN32_ASPERL
+#if defined( HAVE_WIN32_ASPERL ) || defined( USE_ITHREADS )
/* pTHX is needed often now */
# define PERL_INTERPRETER my_perl
# define PERL_BACK_XS_INIT_PARAMS pTHX
@@ -61,6 +70,6 @@ typedef struct perl_backend_instance {
LDAP_END_DECL
-#include "external.h"
+#include "proto-perl.h"
-#endif
+#endif /* PERL_BACK_H */