patches/libcompizconfig-01-solaris-port.diff
author jurikm
Sun, 12 Feb 2012 14:04:10 +0000
changeset 8245 383896da4129
parent 613 47f15fd3475a
permissions -rw-r--r--
SFEsauerbraten.spec: add IPS package name
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
610
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
     1
diff -ruN libcompizconfig-0.6.0.orig/configure.ac libcompizconfig-0.6.0/configure.ac
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
     2
--- libcompizconfig-0.6.0.orig/configure.ac	2007-10-15 12:51:01.000000000 -0400
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
     3
+++ libcompizconfig-0.6.0/configure.ac	2007-10-30 22:32:48.015034828 -0400
422
e76382607bd3 2007-08-24 Erwann Chenede - <[email protected]>
erwannc
parents:
diff changeset
     4
@@ -1,6 +1,6 @@
e76382607bd3 2007-08-24 Erwann Chenede - <[email protected]>
erwannc
parents:
diff changeset
     5
 AC_PREREQ(2.57)
e76382607bd3 2007-08-24 Erwann Chenede - <[email protected]>
erwannc
parents:
diff changeset
     6
 
e76382607bd3 2007-08-24 Erwann Chenede - <[email protected]>
erwannc
parents:
diff changeset
     7
-AC_INIT([libcompizconfig],esyscmd(. ./VERSION;echo -n $VERSION), [[email protected]])
610
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
     8
+AC_INIT([libcompizconfig],esyscmd(. ./VERSION;echo $VERSION | tr -d "\n"), [[email protected]])
422
e76382607bd3 2007-08-24 Erwann Chenede - <[email protected]>
erwannc
parents:
diff changeset
     9
 
e76382607bd3 2007-08-24 Erwann Chenede - <[email protected]>
erwannc
parents:
diff changeset
    10
 AC_DEFINE_UNQUOTED(VERSION,"$VERSION",[Version])
e76382607bd3 2007-08-24 Erwann Chenede - <[email protected]>
erwannc
parents:
diff changeset
    11
 
610
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
    12
@@ -17,6 +17,7 @@
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
    13
 AC_PROG_LIBTOOL
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
    14
 AC_HEADER_STDC
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
    15
 AC_CHECK_HEADERS([stdlib.h sys/time.h unistd.h])
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
    16
+AC_CHECK_FUNCS(va_copy __va_copy vasprintf asprintf strcasestr strsep)
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
    17
 IT_PROG_INTLTOOL([0.35.0])
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
    18
 AC_SUBST(ALL_LINGUAS)
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
    19
 AM_GLIB_GNU_GETTEXT
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
    20
diff -ruN libcompizconfig-0.6.0.orig/metadata/config libcompizconfig-0.6.0/metadata/config
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
    21
--- libcompizconfig-0.6.0.orig/metadata/config	1969-12-31 19:00:00.000000000 -0500
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
    22
+++ libcompizconfig-0.6.0/metadata/config	2007-10-30 21:46:31.236665156 -0400
433
2dbed4f420e6 2007-08-31 Erwann Chenede - <[email protected]>
erwannc
parents: 430
diff changeset
    23
@@ -0,0 +1,6 @@
2dbed4f420e6 2007-08-31 Erwann Chenede - <[email protected]>
erwannc
parents: 430
diff changeset
    24
+[gnome_session]
2dbed4f420e6 2007-08-31 Erwann Chenede - <[email protected]>
erwannc
parents: 430
diff changeset
    25
+backend = gconf
2dbed4f420e6 2007-08-31 Erwann Chenede - <[email protected]>
erwannc
parents: 430
diff changeset
    26
+profile = 
2dbed4f420e6 2007-08-31 Erwann Chenede - <[email protected]>
erwannc
parents: 430
diff changeset
    27
+integration = true
2dbed4f420e6 2007-08-31 Erwann Chenede - <[email protected]>
erwannc
parents: 430
diff changeset
    28
+plugin_list_autosort = true
2dbed4f420e6 2007-08-31 Erwann Chenede - <[email protected]>
erwannc
parents: 430
diff changeset
    29
+
610
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
    30
diff -ruN libcompizconfig-0.6.0.orig/metadata/global.xml libcompizconfig-0.6.0/metadata/global.xml
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
    31
--- libcompizconfig-0.6.0.orig/metadata/global.xml	2007-10-15 12:51:01.000000000 -0400
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
    32
+++ libcompizconfig-0.6.0/metadata/global.xml	2007-10-30 21:46:31.237063304 -0400
430
6683266ffa3b 2007-08-30 Erwann Chenede - <[email protected]>
erwannc
parents: 422
diff changeset
    33
@@ -4,22 +4,32 @@
6683266ffa3b 2007-08-30 Erwann Chenede - <[email protected]>
erwannc
parents: 422
diff changeset
    34
 			<option name="active_plugins" type="list">
6683266ffa3b 2007-08-30 Erwann Chenede - <[email protected]>
erwannc
parents: 422
diff changeset
    35
 				<type>string</type>
6683266ffa3b 2007-08-30 Erwann Chenede - <[email protected]>
erwannc
parents: 422
diff changeset
    36
 				<default>
6683266ffa3b 2007-08-30 Erwann Chenede - <[email protected]>
erwannc
parents: 422
diff changeset
    37
-					<value>dbus</value>
6683266ffa3b 2007-08-30 Erwann Chenede - <[email protected]>
erwannc
parents: 422
diff changeset
    38
-					<value>place</value>
6683266ffa3b 2007-08-30 Erwann Chenede - <[email protected]>
erwannc
parents: 422
diff changeset
    39
-					<value>move</value>
6683266ffa3b 2007-08-30 Erwann Chenede - <[email protected]>
erwannc
parents: 422
diff changeset
    40
-					<value>resize</value>
6683266ffa3b 2007-08-30 Erwann Chenede - <[email protected]>
erwannc
parents: 422
diff changeset
    41
-					<value>decoration</value>
6683266ffa3b 2007-08-30 Erwann Chenede - <[email protected]>
erwannc
parents: 422
diff changeset
    42
-					<value>png</value>
6683266ffa3b 2007-08-30 Erwann Chenede - <[email protected]>
erwannc
parents: 422
diff changeset
    43
-					<value>wobbly</value>
6683266ffa3b 2007-08-30 Erwann Chenede - <[email protected]>
erwannc
parents: 422
diff changeset
    44
-					<value>cube</value>
6683266ffa3b 2007-08-30 Erwann Chenede - <[email protected]>
erwannc
parents: 422
diff changeset
    45
-					<value>fade</value>
6683266ffa3b 2007-08-30 Erwann Chenede - <[email protected]>
erwannc
parents: 422
diff changeset
    46
-					<value>minimize</value>
6683266ffa3b 2007-08-30 Erwann Chenede - <[email protected]>
erwannc
parents: 422
diff changeset
    47
-					<value>rotate</value>
6683266ffa3b 2007-08-30 Erwann Chenede - <[email protected]>
erwannc
parents: 422
diff changeset
    48
-					<value>scale</value>
6683266ffa3b 2007-08-30 Erwann Chenede - <[email protected]>
erwannc
parents: 422
diff changeset
    49
-					<value>switcher</value>
6683266ffa3b 2007-08-30 Erwann Chenede - <[email protected]>
erwannc
parents: 422
diff changeset
    50
-					<value>regex</value>
6683266ffa3b 2007-08-30 Erwann Chenede - <[email protected]>
erwannc
parents: 422
diff changeset
    51
-					<value>workarounds</value>
6683266ffa3b 2007-08-30 Erwann Chenede - <[email protected]>
erwannc
parents: 422
diff changeset
    52
-					<value>zoom</value>
6683266ffa3b 2007-08-30 Erwann Chenede - <[email protected]>
erwannc
parents: 422
diff changeset
    53
+	                                <value>imgjpeg</value>
6683266ffa3b 2007-08-30 Erwann Chenede - <[email protected]>
erwannc
parents: 422
diff changeset
    54
+                                        <value>svg</value>
6683266ffa3b 2007-08-30 Erwann Chenede - <[email protected]>
erwannc
parents: 422
diff changeset
    55
+                                        <value>png</value>
6683266ffa3b 2007-08-30 Erwann Chenede - <[email protected]>
erwannc
parents: 422
diff changeset
    56
+                                        <value>decoration</value>
6683266ffa3b 2007-08-30 Erwann Chenede - <[email protected]>
erwannc
parents: 422
diff changeset
    57
+                                        <value>wobbly</value>
6683266ffa3b 2007-08-30 Erwann Chenede - <[email protected]>
erwannc
parents: 422
diff changeset
    58
+                                        <value>fade</value>
6683266ffa3b 2007-08-30 Erwann Chenede - <[email protected]>
erwannc
parents: 422
diff changeset
    59
+                                        <value>expo</value>
6683266ffa3b 2007-08-30 Erwann Chenede - <[email protected]>
erwannc
parents: 422
diff changeset
    60
+                                        <value>minimize</value>
6683266ffa3b 2007-08-30 Erwann Chenede - <[email protected]>
erwannc
parents: 422
diff changeset
    61
+                                        <value>cube</value>
6683266ffa3b 2007-08-30 Erwann Chenede - <[email protected]>
erwannc
parents: 422
diff changeset
    62
+                                        <value>showdesktop</value>
6683266ffa3b 2007-08-30 Erwann Chenede - <[email protected]>
erwannc
parents: 422
diff changeset
    63
+                                        <value>switcher</value>
6683266ffa3b 2007-08-30 Erwann Chenede - <[email protected]>
erwannc
parents: 422
diff changeset
    64
+                                        <value>move</value>
6683266ffa3b 2007-08-30 Erwann Chenede - <[email protected]>
erwannc
parents: 422
diff changeset
    65
+                                        <value>resize</value>
6683266ffa3b 2007-08-30 Erwann Chenede - <[email protected]>
erwannc
parents: 422
diff changeset
    66
+                                        <value>place</value>
6683266ffa3b 2007-08-30 Erwann Chenede - <[email protected]>
erwannc
parents: 422
diff changeset
    67
+                                        <value>rotate</value>
6683266ffa3b 2007-08-30 Erwann Chenede - <[email protected]>
erwannc
parents: 422
diff changeset
    68
+                                        <value>zoom</value>
6683266ffa3b 2007-08-30 Erwann Chenede - <[email protected]>
erwannc
parents: 422
diff changeset
    69
+                                        <value>scale</value>
6683266ffa3b 2007-08-30 Erwann Chenede - <[email protected]>
erwannc
parents: 422
diff changeset
    70
+                                        <value>shift</value>
6683266ffa3b 2007-08-30 Erwann Chenede - <[email protected]>
erwannc
parents: 422
diff changeset
    71
+                                        <value>dbus</value>
6683266ffa3b 2007-08-30 Erwann Chenede - <[email protected]>
erwannc
parents: 422
diff changeset
    72
+                                        <value>water</value>
6683266ffa3b 2007-08-30 Erwann Chenede - <[email protected]>
erwannc
parents: 422
diff changeset
    73
+                                        <value>snow</value>
6683266ffa3b 2007-08-30 Erwann Chenede - <[email protected]>
erwannc
parents: 422
diff changeset
    74
+                                        <value>animation</value>
6683266ffa3b 2007-08-30 Erwann Chenede - <[email protected]>
erwannc
parents: 422
diff changeset
    75
+                                        <value>firepaint</value>
6683266ffa3b 2007-08-30 Erwann Chenede - <[email protected]>
erwannc
parents: 422
diff changeset
    76
+                                        <value>thumbnail</value>
6683266ffa3b 2007-08-30 Erwann Chenede - <[email protected]>
erwannc
parents: 422
diff changeset
    77
+                                        <value>cubereflex</value>
6683266ffa3b 2007-08-30 Erwann Chenede - <[email protected]>
erwannc
parents: 422
diff changeset
    78
+                                        <value>switcher</value>      
6683266ffa3b 2007-08-30 Erwann Chenede - <[email protected]>
erwannc
parents: 422
diff changeset
    79
 				</default>
6683266ffa3b 2007-08-30 Erwann Chenede - <[email protected]>
erwannc
parents: 422
diff changeset
    80
 			</option>
6683266ffa3b 2007-08-30 Erwann Chenede - <[email protected]>
erwannc
parents: 422
diff changeset
    81
 			<group>
610
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
    82
diff -ruN libcompizconfig-0.6.0.orig/metadata/Makefile.am libcompizconfig-0.6.0/metadata/Makefile.am
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
    83
--- libcompizconfig-0.6.0.orig/metadata/Makefile.am	2007-10-15 12:51:01.000000000 -0400
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
    84
+++ libcompizconfig-0.6.0/metadata/Makefile.am	2007-10-30 21:46:31.236369035 -0400
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
    85
@@ -2,5 +2,10 @@
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
    86
 meta_DATA =	       \
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
    87
 	global.xml
422
e76382607bd3 2007-08-24 Erwann Chenede - <[email protected]>
erwannc
parents:
diff changeset
    88
 
610
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
    89
+configdir = $(sysconfdir)/compizconfig
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
    90
+config_DATA =	      \
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
    91
+	config
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
    92
+
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
    93
 EXTRA_DIST =	       \
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
    94
-	global.xml
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
    95
\ No newline at end of file
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
    96
+	global.xml     \
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
    97
+	config
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
    98
diff -ruN libcompizconfig-0.6.0.orig/src/bindings.c libcompizconfig-0.6.0/src/bindings.c
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
    99
--- libcompizconfig-0.6.0.orig/src/bindings.c	2007-10-15 12:51:01.000000000 -0400
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   100
+++ libcompizconfig-0.6.0/src/bindings.c	2007-10-30 23:14:28.426135089 -0400
422
e76382607bd3 2007-08-24 Erwann Chenede - <[email protected]>
erwannc
parents:
diff changeset
   101
@@ -38,6 +38,7 @@
e76382607bd3 2007-08-24 Erwann Chenede - <[email protected]>
erwannc
parents:
diff changeset
   102
 #include <X11/Xlib.h>
e76382607bd3 2007-08-24 Erwann Chenede - <[email protected]>
erwannc
parents:
diff changeset
   103
 
e76382607bd3 2007-08-24 Erwann Chenede - <[email protected]>
erwannc
parents:
diff changeset
   104
 #include <ccs.h>
610
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   105
+#include "compat.h"
422
e76382607bd3 2007-08-24 Erwann Chenede - <[email protected]>
erwannc
parents:
diff changeset
   106
 
e76382607bd3 2007-08-24 Erwann Chenede - <[email protected]>
erwannc
parents:
diff changeset
   107
 #define CompAltMask        (1 << 16)
e76382607bd3 2007-08-24 Erwann Chenede - <[email protected]>
erwannc
parents:
diff changeset
   108
 #define CompMetaMask       (1 << 17)
610
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   109
diff -ruN libcompizconfig-0.6.0.orig/src/compat.c libcompizconfig-0.6.0/src/compat.c
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   110
--- libcompizconfig-0.6.0.orig/src/compat.c	1969-12-31 19:00:00.000000000 -0500
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   111
+++ libcompizconfig-0.6.0/src/compat.c	2007-10-30 23:10:05.872599481 -0400
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   112
@@ -0,0 +1,162 @@
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   113
+/*
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   114
+ * Copyright (c) 2007 Albert Lee <[email protected]>.
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   115
+ * 
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   116
+ * Copyright (c) 2004 Darren Tucker.
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   117
+ *
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   118
+ * Based originally on asprintf.c from OpenBSD:
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   119
+ * Copyright (c) 1997 Todd C. Miller <[email protected]>
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   120
+ *
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   121
+ * Permission to use, copy, modify, and distribute this software for any
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   122
+ * purpose with or without fee is hereby granted, provided that the above
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   123
+ * copyright notice and this permission notice appear in all copies.
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   124
+ * 
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   125
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   126
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   127
+ * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   128
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   129
+ * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   130
+ * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   131
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   132
+ * OTHER DEALINGS IN THE SOFTWARE.
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   133
+ */
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   134
+
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   135
+#include "config.h"
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   136
+#include "compat.h"
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   137
+
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   138
+#ifndef HAVE_VASPRINTF
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   139
+#include <errno.h>
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   140
+#include <stdio.h>
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   141
+#include <stdarg.h>
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   142
+#include <stdlib.h>
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   143
+#include <limits.h>
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   144
+
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   145
+#ifndef VA_COPY
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   146
+# ifdef HAVE_VA_COPY
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   147
+#  define VA_COPY(dest, src) va_copy(dest, src)
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   148
+# else
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   149
+#  ifdef HAVE___VA_COPY
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   150
+#   define VA_COPY(dest, src) __va_copy(dest, src)
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   151
+#  else
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   152
+#   define VA_COPY(dest, src) (dest) = (src)
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   153
+#  endif
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   154
+# endif
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   155
+#endif
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   156
+
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   157
+#define INIT_SZ	128
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   158
+
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   159
+static int vasprintf(char **str, const char *fmt, va_list ap);
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   160
+
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   161
+static int vasprintf(char **str, const char *fmt, va_list ap)
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   162
+{
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   163
+	int ret = -1;
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   164
+	va_list ap2;
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   165
+	char *string, *newstr;
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   166
+	size_t len;
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   167
+
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   168
+	VA_COPY(ap2, ap);
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   169
+	if ((string = malloc(INIT_SZ)) == NULL)
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   170
+		goto fail;
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   171
+
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   172
+	ret = vsnprintf(string, INIT_SZ, fmt, ap2);
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   173
+	if (ret >= 0 && ret < INIT_SZ) { /* succeeded with initial alloc */
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   174
+		*str = string;
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   175
+	} else if (ret == INT_MAX) { /* shouldn't happen */
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   176
+		goto fail;
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   177
+	} else {	/* bigger than initial, realloc allowing for nul */
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   178
+		len = (size_t)ret + 1;
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   179
+		if ((newstr = realloc(string, len)) == NULL) {
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   180
+			free(string);
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   181
+			goto fail;
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   182
+		} else {
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   183
+			va_end(ap2);
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   184
+			VA_COPY(ap2, ap);
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   185
+			ret = vsnprintf(newstr, len, fmt, ap2);
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   186
+			if (ret >= 0 && (size_t)ret < len) {
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   187
+				*str = newstr;
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   188
+			} else { /* failed with realloc'ed string, give up */
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   189
+				free(newstr);
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   190
+				goto fail;
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   191
+			}
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   192
+		}
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   193
+	}
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   194
+	va_end(ap2);
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   195
+	return (ret);
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   196
+
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   197
+fail:
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   198
+	*str = NULL;
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   199
+	errno = ENOMEM;
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   200
+	va_end(ap2);
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   201
+	return (-1);
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   202
+}
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   203
+#endif
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   204
+
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   205
+#ifndef HAVE_ASPRINTF
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   206
+#include <stdio.h>
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   207
+#include <stdarg.h>
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   208
+#include <stdlib.h>
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   209
+
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   210
+int asprintf(char **str, const char *fmt, ...)
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   211
+{
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   212
+	va_list ap;
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   213
+	int ret;
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   214
+	
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   215
+	*str = NULL;
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   216
+	va_start(ap, fmt);
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   217
+	ret = vasprintf(str, fmt, ap);
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   218
+	va_end(ap);
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   219
+
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   220
+	return ret;
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   221
+}
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   222
+#endif
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   223
+
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   224
+#ifndef HAVE_STRCASESTR
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   225
+#include <ctype.h>
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   226
+
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   227
+char *strcasestr (char *h, char *n)
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   228
+{
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   229
+	char *hp, *np = n, *match = 0;
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   230
+
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   231
+	if(!*np) {
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   232
+		return hp;
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   233
+	}
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   234
+
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   235
+	for (hp = h; *hp; hp++) {
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   236
+		if (toupper(*hp) == toupper(*np)) {
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   237
+			if (!match) {
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   238
+				match = hp;
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   239
+			}
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   240
+			if(!*++np) {
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   241
+				return match;
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   242
+			}
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   243
+		} else {
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   244
+			if (match) { 
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   245
+				match = 0;
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   246
+				np = n;
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   247
+			}
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   248
+		}
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   249
+	}
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   250
+
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   251
+	return NULL; 
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   252
+}
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   253
+#endif
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   254
+
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   255
+#ifndef HAVE_STRSEP
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   256
+#include <string.h>
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   257
+    	
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   258
+char *strsep(char **stringp, const char *delim)
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   259
+{
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   260
+	char *s = *stringp;
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   261
+	char *e;
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   262
+
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   263
+	if (!s)
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   264
+		return NULL;
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   265
+
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   266
+	e = strpbrk(s, delim);
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   267
+	if (e)
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   268
+		*e++ = '\0';
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   269
+
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   270
+	*stringp = e;
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   271
+	return s;
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   272
+}
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   273
+#endif
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   274
+
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   275
diff -ruN libcompizconfig-0.6.0.orig/src/compat.h libcompizconfig-0.6.0/src/compat.h
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   276
--- libcompizconfig-0.6.0.orig/src/compat.h	1969-12-31 19:00:00.000000000 -0500
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   277
+++ libcompizconfig-0.6.0/src/compat.h	2007-10-30 23:12:55.926225079 -0400
613
47f15fd3475a 2007-11-01 Albert Lee <[email protected]>
trisk
parents: 610
diff changeset
   278
@@ -0,0 +1,37 @@
610
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   279
+/*
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   280
+ * Copyright (c) 2007 Albert Lee <[email protected]>.
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   281
+ * 
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   282
+ * Copyright (c) 2004 Darren Tucker.
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   283
+ *
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   284
+ * Based originally on asprintf.c from OpenBSD:
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   285
+ * Copyright (c) 1997 Todd C. Miller <[email protected]>
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   286
+ *
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   287
+ * Permission to use, copy, modify, and distribute this software for any
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   288
+ * purpose with or without fee is hereby granted, provided that the above
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   289
+ * copyright notice and this permission notice appear in all copies.
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   290
+ * 
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   291
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   292
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   293
+ * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   294
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   295
+ * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   296
+ * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   297
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   298
+ * OTHER DEALINGS IN THE SOFTWARE.
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   299
+ */
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   300
+
613
47f15fd3475a 2007-11-01 Albert Lee <[email protected]>
trisk
parents: 610
diff changeset
   301
+#ifndef _COMPAT_H
610
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   302
+#include "config.h"
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   303
+
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   304
+#ifndef HAVE_ASPRINTF
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   305
+int asprintf(char **str, const char *fmt, ...);
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   306
+#endif
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   307
+
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   308
+#ifndef HAVE_STRCASESTR
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   309
+char *strcasestr (char *h, char *n);
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   310
+#endif
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   311
+
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   312
+#ifndef HAVE_STRSEP
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   313
+char *strsep(char **stringp, const char *delim);
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   314
+#endif
613
47f15fd3475a 2007-11-01 Albert Lee <[email protected]>
trisk
parents: 610
diff changeset
   315
+#endif /* _COMPAT_H */
610
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   316
diff -ruN libcompizconfig-0.6.0.orig/src/compiz.c libcompizconfig-0.6.0/src/compiz.c
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   317
--- libcompizconfig-0.6.0.orig/src/compiz.c	2007-10-15 12:51:01.000000000 -0400
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   318
+++ libcompizconfig-0.6.0/src/compiz.c	2007-10-30 23:15:03.372232998 -0400
422
e76382607bd3 2007-08-24 Erwann Chenede - <[email protected]>
erwannc
parents:
diff changeset
   319
@@ -42,6 +42,7 @@
e76382607bd3 2007-08-24 Erwann Chenede - <[email protected]>
erwannc
parents:
diff changeset
   320
 #include <compiz.h>
e76382607bd3 2007-08-24 Erwann Chenede - <[email protected]>
erwannc
parents:
diff changeset
   321
 #include <ccs.h>
e76382607bd3 2007-08-24 Erwann Chenede - <[email protected]>
erwannc
parents:
diff changeset
   322
 #include "ccs-private.h"
610
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   323
+#include "compat.h"
422
e76382607bd3 2007-08-24 Erwann Chenede - <[email protected]>
erwannc
parents:
diff changeset
   324
 
e76382607bd3 2007-08-24 Erwann Chenede - <[email protected]>
erwannc
parents:
diff changeset
   325
 static xmlDoc * globalMetadata = NULL;
e76382607bd3 2007-08-24 Erwann Chenede - <[email protected]>
erwannc
parents:
diff changeset
   326
 
610
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   327
diff -ruN libcompizconfig-0.6.0.orig/src/config.c libcompizconfig-0.6.0/src/config.c
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   328
--- libcompizconfig-0.6.0.orig/src/config.c	2007-10-15 12:51:01.000000000 -0400
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   329
+++ libcompizconfig-0.6.0/src/config.c	2007-10-30 23:14:38.939817952 -0400
422
e76382607bd3 2007-08-24 Erwann Chenede - <[email protected]>
erwannc
parents:
diff changeset
   330
@@ -26,6 +26,7 @@
e76382607bd3 2007-08-24 Erwann Chenede - <[email protected]>
erwannc
parents:
diff changeset
   331
 #include <string.h>
e76382607bd3 2007-08-24 Erwann Chenede - <[email protected]>
erwannc
parents:
diff changeset
   332
 
e76382607bd3 2007-08-24 Erwann Chenede - <[email protected]>
erwannc
parents:
diff changeset
   333
 #include "ccs-private.h"
610
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   334
+#include "compat.h"
422
e76382607bd3 2007-08-24 Erwann Chenede - <[email protected]>
erwannc
parents:
diff changeset
   335
 
e76382607bd3 2007-08-24 Erwann Chenede - <[email protected]>
erwannc
parents:
diff changeset
   336
 #define SETTINGPATH "compiz/compizconfig"
e76382607bd3 2007-08-24 Erwann Chenede - <[email protected]>
erwannc
parents:
diff changeset
   337
 
610
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   338
diff -ruN libcompizconfig-0.6.0.orig/src/ini.c libcompizconfig-0.6.0/src/ini.c
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   339
--- libcompizconfig-0.6.0.orig/src/ini.c	2007-10-15 12:51:01.000000000 -0400
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   340
+++ libcompizconfig-0.6.0/src/ini.c	2007-10-30 23:14:31.239326381 -0400
422
e76382607bd3 2007-08-24 Erwann Chenede - <[email protected]>
erwannc
parents:
diff changeset
   341
@@ -26,6 +26,7 @@
e76382607bd3 2007-08-24 Erwann Chenede - <[email protected]>
erwannc
parents:
diff changeset
   342
 
e76382607bd3 2007-08-24 Erwann Chenede - <[email protected]>
erwannc
parents:
diff changeset
   343
 #include <ccs.h>
e76382607bd3 2007-08-24 Erwann Chenede - <[email protected]>
erwannc
parents:
diff changeset
   344
 #include "iniparser.h"
610
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   345
+#include "compat.h"
422
e76382607bd3 2007-08-24 Erwann Chenede - <[email protected]>
erwannc
parents:
diff changeset
   346
 
e76382607bd3 2007-08-24 Erwann Chenede - <[email protected]>
erwannc
parents:
diff changeset
   347
 /** 
e76382607bd3 2007-08-24 Erwann Chenede - <[email protected]>
erwannc
parents:
diff changeset
   348
  * Creates the parent directory for @fileName, recursively creating a directory
610
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   349
diff -ruN libcompizconfig-0.6.0.orig/src/main.c libcompizconfig-0.6.0/src/main.c
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   350
--- libcompizconfig-0.6.0.orig/src/main.c	2007-10-15 12:51:01.000000000 -0400
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   351
+++ libcompizconfig-0.6.0/src/main.c	2007-10-30 23:14:16.075089911 -0400
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   352
@@ -37,6 +37,7 @@
422
e76382607bd3 2007-08-24 Erwann Chenede - <[email protected]>
erwannc
parents:
diff changeset
   353
 
e76382607bd3 2007-08-24 Erwann Chenede - <[email protected]>
erwannc
parents:
diff changeset
   354
 #include "ccs-private.h"
610
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   355
 #include "iniparser.h"
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   356
+#include "compat.h"
422
e76382607bd3 2007-08-24 Erwann Chenede - <[email protected]>
erwannc
parents:
diff changeset
   357
 
e76382607bd3 2007-08-24 Erwann Chenede - <[email protected]>
erwannc
parents:
diff changeset
   358
 Bool basicMetadata = FALSE;
e76382607bd3 2007-08-24 Erwann Chenede - <[email protected]>
erwannc
parents:
diff changeset
   359
 
610
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   360
diff -ruN libcompizconfig-0.6.0.orig/src/Makefile.am libcompizconfig-0.6.0/src/Makefile.am
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   361
--- libcompizconfig-0.6.0.orig/src/Makefile.am	2007-10-15 12:51:01.000000000 -0400
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   362
+++ libcompizconfig-0.6.0/src/Makefile.am	2007-10-30 22:14:29.617182958 -0400
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   363
@@ -19,6 +19,8 @@
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   364
 	ini.c 		\
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   365
 	bindings.c 	\
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   366
 	filewatch.c 	\
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   367
+	compat.c	\
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   368
+	compat.h	\
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   369
 	ccs-private.h	\
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   370
 	iniparser.h
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents: 433
diff changeset
   371