*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*
* Copyright 2002 The FreeRADIUS server project
* Copyright 2002 Boian Jordanov <bjordanov@orbitel.bg>
#include <dlfcn.h>
#include <semaphore.h>
+#ifdef __APPLE__
+extern char **environ;
+#endif
+
static const char rcsid[] = "$Id$";
#ifdef USE_ITHREADS
return 1;
}
#endif
-/*
- * Do any per-module initialization. e.g. set up connections
- * to external databases, read configuration files, set up
- * dictionary entries, etc.
- *
- * Try to avoid putting too much stuff in here - it's better to
- * do it in instantiate() where it is not global.
- * I use one global interpetator to make things more fastest for
- * Threading env I clone new perl from this interp.
- */
-static int perl_init(void)
-{
- return 0;
-
-}
static void xs_init(pTHX)
{
* The xlat function
*/
static int perl_xlat(void *instance, REQUEST *request, char *fmt, char * out,
- int freespace, RADIUS_ESCAPE_STRING func)
+ size_t freespace, RADIUS_ESCAPE_STRING func)
{
PERL_INST *inst= (PERL_INST *) instance;
HV *rad_request_proxy_reply_hv;
AV *end_AV;
- char *embed[4], *xlat_name;
+ char *embed[4];
+ const char *xlat_name;
int exitstatus = 0, argc=0;
/*
PL_perl_destruct_level = 2;
}
- inst->perl = perl_clone(interp ,CLONEf_KEEP_PTR_TABLE);
+ inst->perl = interp;
{
dTHXa(inst->perl);
}