- libXdmcp-1.0.2-namespace-pollution.patch: Hide Xalloc and friends from
the dynamic linker.
This commit is contained in:
parent
6bff3f3a94
commit
fab0f5b416
32
libXdmcp-1.0.2-namespace-pollution.patch
Normal file
32
libXdmcp-1.0.2-namespace-pollution.patch
Normal 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)
|
||||
@ -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
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user