From 2064c0d2cfe123096f281cebdefd4542ca1b9224 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?= <grubba@grubba.org> Date: Thu, 17 Jun 2010 19:16:05 +0200 Subject: [PATCH] Improved support for LIBPIKE. Rev: src/main.c:1.237 --- src/main.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/main.c b/src/main.c index fd6bb40087..dd3f9df124 100644 --- a/src/main.c +++ b/src/main.c @@ -2,7 +2,7 @@ || This file is part of Pike. For copyright information see COPYRIGHT. || Pike is distributed under GPL, LGPL and MPL. See the file COPYING || for more information. -|| $Id: main.c,v 1.236 2009/09/18 16:00:42 grubba Exp $ +|| $Id: main.c,v 1.237 2010/06/17 17:16:05 grubba Exp $ */ #include "global.h" @@ -43,8 +43,14 @@ #include "pike_embed.h" -#if defined(__linux__) && defined(HAVE_DLOPEN) && defined(HAVE_DLFCN_H) +#ifdef LIBPIKE +#if defined(HAVE_DLOPEN) && defined(HAVE_DLFCN_H) #include <dlfcn.h> +#elif !defined(USE_DLL) && defined(USE_MY_WIN32_DLOPEN) +#include "pike_dlfcn.h" +#else +#undef LIBPIKE +#endif #endif #include "las.h" -- GitLab