- libXdmcp-1.0.2-namespace-pollution.patch: Hide Xalloc and friends from

the dynamic linker.
This commit is contained in:
Adam Jackson 2006-11-20 20:32:10 +00:00
parent 6bff3f3a94
commit fab0f5b416
2 changed files with 39 additions and 1 deletions

View File

@ -0,0 +1,32 @@
--- libXdmcp-1.0.2/Alloc.c.jx 2006-07-11 14:05:09.000000000 -0400
+++ libXdmcp-1.0.2/Alloc.c 2006-11-20 15:28:25.000000000 -0500
@@ -38,9 +38,10 @@
#include <X11/X.h>
#include <X11/Xmd.h>
#include <X11/Xdmcp.h>
+#include <X11/Xfuncproto.h>
#include <stdlib.h>
-void *
+_X_HIDDEN void *
Xalloc (unsigned long amount)
{
if (amount == 0)
@@ -48,7 +49,7 @@
return malloc (amount);
}
-void *
+_X_HIDDEN void *
Xrealloc (void *old, unsigned long amount)
{
if (amount == 0)
@@ -58,7 +59,7 @@
return realloc ((char *) old, amount);
}
-void
+_X_HIDDEN void
Xfree (void *old)
{
if (old)

View File

@ -1,13 +1,14 @@
Summary: X.Org X11 libXdmcp runtime library
Name: libXdmcp
Version: 1.0.2
Release: 1
Release: 2%{?dist}
License: MIT/X11
Group: System Environment/Libraries
URL: http://www.x.org
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Source0: ftp://ftp.x.org/pub/individual/lib/%{name}-%{version}.tar.bz2
Patch0: libXdmcp-1.0.2-namespace-pollution.patch
BuildRequires: pkgconfig
BuildRequires: xorg-x11-proto-devel
@ -33,6 +34,7 @@ X.Org X11 libXdmcp development package
%prep
%setup -q
%patch0 -p1 -b .hidden
# Disable static library creation by default.
%define with_static 0
@ -75,6 +77,10 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/pkgconfig/xdmcp.pc
%changelog
* Mon Nov 20 2006 Adam Jackson <ajax@redhat.com> 1.0.2-2.fc7
- libXdmcp-1.0.2-namespace-pollution.patch: Hide Xalloc and friends from the
dynamic linker.
* Mon Nov 20 2006 Adam Jackson <ajax@redhat.com> 1.0.2-1
- Update to 1.0.2