patch for ogle_gui-0.9.2-cvs/src/my_glade.c

[email protected] Tue, 3 Jan 2006 15:02:52 +0100
Newsgroups gmane.comp.video.ogle.user
Message-ID <[email protected]>
Hi,

to get the compiled version of ogle_gui-0.9.2-cvs working on
FreeBSD the following patch is needed:

$ diff -c src/my_glade.c.orig src/my_glade.c
*** src/my_glade.c.orig Tue Jan  3 14:56:52 2006
--- src/my_glade.c      Tue Jan  3 14:58:13 2006
***************
*** 38,43 ****
--- 38,49 ----
    new_symbol = g_strdup(symbol);
  #endif
  
+   /*
+    * Reset dlerror() since it can contain error from previous
+    * call to dlopen()/dlsym().
+    */
+   dlerror();
+ 
    fun = dlsym(handle, new_symbol);
    error = dlerror();
    if(error != NULL) {

HIH

	matthias
-- 
Matthias Apitz / Sisis Informationssysteme GmbH
ein Tochterunternehmen der OCLC PICA B.V. Leiden (NL)
D-82041 Oberhaching, Gruenwalder Weg 28g
Fon: +49 89 / 61308-351, Fax: -399, Mobile +49 170 4527211
http://www.sisis.de/~guru/