crosstool-ng/patches/glibc/linaro-2.20-2014.11/100-sparc-nptl.patch
Bryan Hundven 7226fc2ac1 patches: No symlinks in patch directory
With newer version of the patch program, it no longer follows symlinks:

========================================================================
a/patch-2.7.4-x86_64-1.txz:  Upgraded.
  Patch no longer follows symbolic links to input and output files.
This
  ensures that symbolic links created by git-style patches cannot cause
  patch to write outside the working directory.
  For more information, see:
    http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-1196
  (* Security fix *)
========================================================================

This copies patches/glibc/2.20 to patches/glibc/linaro-2.20-2014.11.

This change also closes #51

Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2015-06-14 11:03:13 -07:00

15 lines
357 B
Diff

diff --git a/sysdeps/sparc/sparc32/sem_trywait.c b/sysdeps/sparc/sparc32/sem_trywait.c
index 7d0fc55..ad9b4ad 100644
--- a/sysdeps/sparc/sparc32/sem_trywait.c
+++ b/sysdeps/sparc/sparc32/sem_trywait.c
@@ -22,6 +22,7 @@
#include <lowlevellock.h>
#include <internaltypes.h>
#include <semaphore.h>
+#include <sparc-nptl.h>
#include <shlib-compat.h>