$NetBSD: patch-af,v 1.1.1.1 2001/03/14 15:59:48 skrll Exp $

--- kdecore/kapp.cpp.orig	Thu Feb 22 18:12:55 2001
+++ kdecore/kapp.cpp
@@ -1433,18 +1433,18 @@
             setStyle(pKStyle);
         }
         else{
-            lt_ptr_t alloc_func;
+            lt_ptr alloc_func;
             if (styleStr.find("basicstyle.la",0,false)==-1)
-                alloc_func=lt_dlsym(styleHandle,"allocate");
+                alloc_func=lt_dlsym((lt_dlhandle)styleHandle,"allocate");
             else
-                alloc_func= lt_dlsym(styleHandle,"allocateCustomTheme");
+                alloc_func= lt_dlsym((lt_dlhandle)styleHandle,"allocateCustomTheme");
 
             if(!alloc_func){
 	        kdWarning() << "Unable to init style plugin " << styleStr
 		                      << "(" << lt_dlerror() << ")\n";
                 pKStyle = new KDEStyle;
                 setStyle(pKStyle);
-                lt_dlclose(styleHandle);
+                lt_dlclose((lt_dlhandle)styleHandle);
                 styleHandle = 0;
             }
             else{
@@ -1467,7 +1467,7 @@
                     kdWarning() << "Style plugin unable to allocate style.\n";
                     pKStyle = new KDEStyle;
                     setStyle(pKStyle);
-                    lt_dlclose(styleHandle);
+                    lt_dlclose((lt_dlhandle)styleHandle);
                     styleHandle = 0;
                 }
             }
@@ -1480,7 +1480,7 @@
     }
 
     if(oldHandle){
-        lt_dlclose((lt_dlhandle*)oldHandle);
+        lt_dlclose((lt_dlhandle)oldHandle);
     }
     if(pKStyle)
         connect(pKStyle, SIGNAL(destroyed()), SLOT(kstyleDestroyed()));
