Hi,
This is my first post, I've been using ion for about six months.
I attach a simple patch for use modules in OpenBSD (NetBSD too),
the patch is applied in wmcore/modules.c, you have to put -DOPENBSD
in system.mk and leave the MODULE_SUPPORT_LDFLAGS line empty.
Bye.
PD: english is not my native language.
--- /tmp/ion-devel-20030225/wmcore/modules.c Thu Feb 20 14:48:46 2003
+++ modules.c Fri Feb 28 23:28:59 2003
@@ -32,7 +32,11 @@
static bool call_init(void *handle, char *name)
{
+#ifdef OPENBSD || NETBSD
+ char *p=scat3("_", name, "_init");
+#else
char *p=scat(name, "_init");
+#endif
bool (*initfn)(void);
if(p==NULL){
@@ -157,7 +161,11 @@
static void call_deinit(void *handle, char *name)
{
+#ifdef OPENBSD || NETBSD
+ char *p=scat3("_", name, "_deinit");
+#else
char *p=scat(name, "_deinit");
+#endif
void (*deinitfn)(void);
if(p==NULL){