open-src/lib/libXinerama/sun-abi.patch
author X gate hg captive account <xhg@xserver.us.oracle.com>
Wed, 19 Aug 2015 13:48:41 -0700
changeset 1484 bc8922b8e1d2
parent 1370 7a7a374453e5
permissions -rw-r--r--
Added tag s11u3_30 for changeset 221e9d9cc9cb
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
126
ca8bb92f6783 6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     1
#
943
294f64612d23 6948254 Mass update of X gate sources to Oracle copyright format
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 919
diff changeset
     2
# Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
126
ca8bb92f6783 6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     3
#
ca8bb92f6783 6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     4
# Permission is hereby granted, free of charge, to any person obtaining a
919
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 907
diff changeset
     5
# copy of this software and associated documentation files (the "Software"),
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 907
diff changeset
     6
# to deal in the Software without restriction, including without limitation
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 907
diff changeset
     7
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 907
diff changeset
     8
# and/or sell copies of the Software, and to permit persons to whom the
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 907
diff changeset
     9
# Software is furnished to do so, subject to the following conditions:
126
ca8bb92f6783 6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    10
#
919
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 907
diff changeset
    11
# The above copyright notice and this permission notice (including the next
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 907
diff changeset
    12
# paragraph) shall be included in all copies or substantial portions of the
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 907
diff changeset
    13
# Software.
126
ca8bb92f6783 6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    14
#
919
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 907
diff changeset
    15
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 907
diff changeset
    16
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 907
diff changeset
    17
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 907
diff changeset
    18
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 907
diff changeset
    19
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 907
diff changeset
    20
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 907
diff changeset
    21
# DEALINGS IN THE SOFTWARE.
126
ca8bb92f6783 6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    22
# 
ca8bb92f6783 6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    23
#
ca8bb92f6783 6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    24
#
ca8bb92f6783 6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    25
ca8bb92f6783 6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    26
Solaris already has the old XPanoramiX* API in libXext, so we don't export
ca8bb92f6783 6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    27
it from libXinerama to avoid symbol clashes.
ca8bb92f6783 6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    28
1370
7a7a374453e5 17472475 Mass minor bugfix update to X.Org upstream release [Sep. 2013 edition]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1072
diff changeset
    29
diff --git a/src/Xinerama.c b/src/Xinerama.c
7a7a374453e5 17472475 Mass minor bugfix update to X.Org upstream release [Sep. 2013 edition]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1072
diff changeset
    30
index 67a35b5..e0e5c5d 100644
7a7a374453e5 17472475 Mass minor bugfix update to X.Org upstream release [Sep. 2013 edition]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1072
diff changeset
    31
--- a/src/Xinerama.c
7a7a374453e5 17472475 Mass minor bugfix update to X.Org upstream release [Sep. 2013 edition]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1072
diff changeset
    32
+++ b/src/Xinerama.c
7a7a374453e5 17472475 Mass minor bugfix update to X.Org upstream release [Sep. 2013 edition]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1072
diff changeset
    33
@@ -89,6 +89,9 @@ static XEXT_GENERATE_CLOSE_DISPLAY (close_display, panoramiX_ext_info)
126
ca8bb92f6783 6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    34
  *                                                                          *
ca8bb92f6783 6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    35
  ****************************************************************************/
ca8bb92f6783 6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    36
 
ca8bb92f6783 6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    37
+#ifdef SUNSOFT
ca8bb92f6783 6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    38
+static inline
ca8bb92f6783 6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    39
+#endif /* SUNSOFT */
ca8bb92f6783 6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    40
 Bool XPanoramiXQueryExtension (
ca8bb92f6783 6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    41
     Display *dpy,
1072
88d1d779286d 7010623 X11R7.6 Update: Library modules
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 943
diff changeset
    42
     int *event_base_return,
1370
7a7a374453e5 17472475 Mass minor bugfix update to X.Org upstream release [Sep. 2013 edition]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1072
diff changeset
    43
@@ -107,6 +110,9 @@ Bool XPanoramiXQueryExtension (
126
ca8bb92f6783 6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    44
 }
ca8bb92f6783 6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    45
 
ca8bb92f6783 6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    46
 
ca8bb92f6783 6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    47
+#ifdef SUNSOFT
ca8bb92f6783 6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    48
+static inline
ca8bb92f6783 6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    49
+#endif /* SUNSOFT */
ca8bb92f6783 6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    50
 Status XPanoramiXQueryVersion(
ca8bb92f6783 6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    51
     Display *dpy,
1072
88d1d779286d 7010623 X11R7.6 Update: Library modules
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 943
diff changeset
    52
     int     *major_version_return,
1370
7a7a374453e5 17472475 Mass minor bugfix update to X.Org upstream release [Sep. 2013 edition]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1072
diff changeset
    53
@@ -137,6 +143,7 @@ Status XPanoramiXQueryVersion(
126
ca8bb92f6783 6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    54
     return 1;
ca8bb92f6783 6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    55
 }
ca8bb92f6783 6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    56
 
ca8bb92f6783 6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    57
+#ifndef SUNSOFT
ca8bb92f6783 6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    58
 XPanoramiXInfo *XPanoramiXAllocInfo(void)
ca8bb92f6783 6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    59
 {
ca8bb92f6783 6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    60
 	return (XPanoramiXInfo *) Xmalloc (sizeof (XPanoramiXInfo));
1370
7a7a374453e5 17472475 Mass minor bugfix update to X.Org upstream release [Sep. 2013 edition]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1072
diff changeset
    61
@@ -232,6 +239,7 @@ Status XPanoramiXGetScreenSize (
126
ca8bb92f6783 6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    62
     panoramiX_info->height = rep.height;
ca8bb92f6783 6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    63
     return 1;
ca8bb92f6783 6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    64
 }
ca8bb92f6783 6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    65
+#endif /* SUNSOFT */
ca8bb92f6783 6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    66
 
ca8bb92f6783 6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    67
 /*******************************************************************\
ca8bb92f6783 6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    68
   Alternate interface to make up for shortcomings in the original,