X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=servers%2Fslapd%2Fback-perl%2Fadd.c;h=9f6cdd1de255743fc2658c49201354ca64cabbfe;hb=122fa3a89538cefba69eb2c9fc7a43f62b9e3733;hp=c2780933237eee8db0a24a1d9db1b5c8a7e607e9;hpb=3c598e89fb34a892d369a138daa8c3314294493c;p=openldap
diff --git a/servers/slapd/back-perl/add.c b/servers/slapd/back-perl/add.c
index c278093323..9f6cdd1de2 100644
--- a/servers/slapd/back-perl/add.c
+++ b/servers/slapd/back-perl/add.c
@@ -1,7 +1,7 @@
/* $OpenLDAP$ */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1999-2004 The OpenLDAP Foundation.
+ * Copyright 1999-2011 The OpenLDAP Foundation.
* Portions Copyright 1999 John C. Quillan.
* Portions Copyright 2002 myinternet Limited.
* All rights reserved.
@@ -15,20 +15,6 @@
* .
*/
-#include
-#include
-#undef _ /* #defined by both Perl and ac/localize.h */
-
-#ifdef HAVE_WIN32_ASPERL
-#include "asperl_undefs.h"
-#endif
-
-#include "portable.h"
-
-#include
-
-#include "slap.h"
-
#include "perl_back.h"
int
@@ -40,6 +26,7 @@ perl_back_add(
int len;
int count;
+ PERL_SET_CONTEXT( PERL_INTERPRETER );
ldap_pvt_thread_mutex_lock( &perl_interpreter_mutex );
ldap_pvt_thread_mutex_lock( &entry2str_mutex );
@@ -52,11 +39,7 @@ perl_back_add(
PUTBACK;
-#ifdef PERL_IS_5_6
count = call_method("add", G_SCALAR);
-#else
- count = perl_call_method("add", G_SCALAR);
-#endif
SPAGAIN;