File curl-strict-aliasing.patch of Package compat-curl

---
 lib/ldap.c |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

--- lib/ldap.c.orig
+++ lib/ldap.c
@@ -198,7 +198,10 @@ static dynafunc DynaGetFunction(const ch
      * cannot typecast a data pointer to a function pointer, but that's
      * exactly what we need to do here to avoid compiler warnings on picky
      * compilers! */
-    *(void**) (&func) = dlsym(libldap, name);
+    /* mmarek@suse.cz: I guess we can live with the void* -> funcptr conversion
+     * on systems where dlsym is supported... anyway less harm that risking
+     * strict aliasing bugs... */
+    func = dlsym(libldap, name);
   }
 #ifdef DL_LBER_FILE
   if (!func && liblber) {
openSUSE Build Service is sponsored by