summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2006-06-17 23:08:23 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2006-06-17 23:08:23 +0000
commitc48a410d05a29e4bc2b38420efdeedf674197d6c (patch)
tree89397c534705ab580458f2cceba0c8e5dc15c38f /kde-base/kdm/files/kdm-3.5.3-strict-aliasing.patch
parentNew mplayer version (diff)
downloadgentoo-2-c48a410d05a29e4bc2b38420efdeedf674197d6c.tar.gz
gentoo-2-c48a410d05a29e4bc2b38420efdeedf674197d6c.tar.bz2
gentoo-2-c48a410d05a29e4bc2b38420efdeedf674197d6c.zip
Add patch to fix strict-aliasing breakages.
(Portage version: 2.1.1_pre1)
Diffstat (limited to 'kde-base/kdm/files/kdm-3.5.3-strict-aliasing.patch')
-rw-r--r--kde-base/kdm/files/kdm-3.5.3-strict-aliasing.patch38
1 files changed, 38 insertions, 0 deletions
diff --git a/kde-base/kdm/files/kdm-3.5.3-strict-aliasing.patch b/kde-base/kdm/files/kdm-3.5.3-strict-aliasing.patch
new file mode 100644
index 000000000000..fcdb060f5d25
--- /dev/null
+++ b/kde-base/kdm/files/kdm-3.5.3-strict-aliasing.patch
@@ -0,0 +1,38 @@
+Index: kdebase-3.5.3/kdm/backend/Makefile.am
+===================================================================
+--- kdebase-3.5.3.orig/kdm/backend/Makefile.am
++++ kdebase-3.5.3/kdm/backend/Makefile.am
+@@ -7,6 +7,7 @@ LDADD = $(LIB_X11) -lXau $(LIBXDMCP) $(P
+ $(LIBUCB) $(LIBUTIL) $(LIBPOSIX4)
+
+ bin_PROGRAMS = kdm
++kdm_CFLAGS = -fno-strict-aliasing
+ kdm_SOURCES = \
+ access.c \
+ auth.c \
+Index: kdebase-3.5.3/kdm/backend/xdmcp.c
+===================================================================
+--- kdebase-3.5.3.orig/kdm/backend/xdmcp.c
++++ kdebase-3.5.3/kdm/backend/xdmcp.c
+@@ -160,7 +160,7 @@ all_query_respond( struct sockaddr *from
+ int family;
+ int length;
+
+- family = ConvertAddr( (XdmcpNetaddr)from, &length, (char **)&(addr.data) );
++ family = ConvertAddr( (XdmcpNetaddr)from, &length, &(addr.data) );
+ addr.length = length; /* convert int to short */
+ Debug( "all_query_respond: conntype=%d, addr=%02[*:hhx\n",
+ family, addr.length, addr.data );
+Index: kdebase-3.5.3/kdm/kfrontend/kdm_config.c
+===================================================================
+--- kdebase-3.5.3.orig/kdm/kfrontend/kdm_config.c
++++ kdebase-3.5.3/kdm/kfrontend/kdm_config.c
+@@ -733,7 +733,7 @@ CvtValue( Ent *et, Value *retval, int va
+ }
+ }
+ retval->ptr = 0;
+- if (sscanf( buf, "%li", (long *)&retval->ptr ) != 1)
++ if (sscanf( buf, "%li", &retval->ptr ) != 1)
+ return "integer";
+ return 0;
+ case C_TYPE_STR: