~pali/+junk/mesa-lts-saucy-packaging

« back to all changes in this revision

Viewing changes to debian/patches/11-hurd-ftbfs-again.diff

  • Committer: Pali Rohár
  • Date: 2014-04-11 10:59:06 UTC
  • Revision ID: pali.rohar@gmail.com-20140411105906-qk25ix27pd6rdho8
Import debian packaging for mesa-lts-saucy version 9.2.1-1ubuntu3~precise1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
From c43546d2c9d877df6963a18f93377f93a169d43a Mon Sep 17 00:00:00 2001
 
2
From: Cyril Brulebois <kibi@debian.org>
 
3
Date: Sun, 13 Feb 2011 06:58:45 +0000
 
4
Subject: [PATCH] Fix FTBFS on GNU/Hurd due to missing PIPE_OS_HURD detection.
 
5
 
 
6
Thanks to Pino Toscano.
 
7
 
 
8
Signed-off-by: Cyril Brulebois <kibi@debian.org>
 
9
---
 
10
 src/gallium/auxiliary/os/os_thread.h |   12 ++++++------
 
11
 src/gallium/auxiliary/os/os_time.c   |    2 +-
 
12
 2 files changed, 7 insertions(+), 7 deletions(-)
 
13
 
 
14
--- a/src/gallium/auxiliary/os/os_thread.h
 
15
+++ b/src/gallium/auxiliary/os/os_thread.h
 
16
@@ -40,7 +40,7 @@
 
17
 #include "util/u_debug.h" /* for assert */
 
18
 
 
19
 
 
20
-#if defined(PIPE_OS_LINUX) || defined(PIPE_OS_BSD) || defined(PIPE_OS_SOLARIS) || defined(PIPE_OS_APPLE) || defined(PIPE_OS_HAIKU) || defined(PIPE_OS_CYGWIN)
 
21
+#if defined(PIPE_OS_LINUX) || defined(PIPE_OS_BSD) || defined(PIPE_OS_SOLARIS) || defined(PIPE_OS_APPLE) || defined(PIPE_OS_HAIKU) || defined(PIPE_OS_CYGWIN) || defined(PIPE_OS_HURD)
 
22
 
 
23
 #include <pthread.h> /* POSIX threads headers */
 
24
 #include <stdio.h> /* for perror() */
 
25
@@ -314,7 +314,7 @@ typedef int64_t pipe_condvar;
 
26
  * pipe_barrier
 
27
  */
 
28
 
 
29
-#if defined(PIPE_OS_LINUX) || defined(PIPE_OS_BSD) || defined(PIPE_OS_SOLARIS) || defined(PIPE_OS_HAIKU)
 
30
+#if defined(PIPE_OS_LINUX) || defined(PIPE_OS_BSD) || defined(PIPE_OS_SOLARIS) || defined(PIPE_OS_HAIKU) || defined(PIPE_OS_HURD)
 
31
 
 
32
 typedef pthread_barrier_t pipe_barrier;
 
33
 
 
34
@@ -442,7 +442,7 @@ pipe_semaphore_wait(pipe_semaphore *sema
 
35
  */
 
36
 
 
37
 typedef struct {
 
38
-#if defined(PIPE_OS_LINUX) || defined(PIPE_OS_BSD) || defined(PIPE_OS_SOLARIS) || defined(PIPE_OS_APPLE) || defined(PIPE_OS_HAIKU) || defined(PIPE_OS_CYGWIN)
 
39
+#if defined(PIPE_OS_LINUX) || defined(PIPE_OS_BSD) || defined(PIPE_OS_SOLARIS) || defined(PIPE_OS_APPLE) || defined(PIPE_OS_HAIKU) || defined(PIPE_OS_CYGWIN) || defined(PIPE_OS_HURD)
 
40
    pthread_key_t key;
 
41
 #elif defined(PIPE_SUBSYSTEM_WINDOWS_USER)
 
42
    DWORD key;
 
43
@@ -457,7 +457,7 @@ typedef struct {
 
44
 static INLINE void
 
45
 pipe_tsd_init(pipe_tsd *tsd)
 
46
 {
 
47
-#if defined(PIPE_OS_LINUX) || defined(PIPE_OS_BSD) || defined(PIPE_OS_SOLARIS) || defined(PIPE_OS_APPLE) || defined(PIPE_OS_HAIKU) || defined(PIPE_OS_CYGWIN)
 
48
+#if defined(PIPE_OS_LINUX) || defined(PIPE_OS_BSD) || defined(PIPE_OS_SOLARIS) || defined(PIPE_OS_APPLE) || defined(PIPE_OS_HAIKU) || defined(PIPE_OS_CYGWIN) || defined(PIPE_OS_HURD)
 
49
    if (pthread_key_create(&tsd->key, NULL/*free*/) != 0) {
 
50
       perror("pthread_key_create(): failed to allocate key for thread specific data");
 
51
       exit(-1);
 
52
@@ -474,7 +474,7 @@ pipe_tsd_get(pipe_tsd *tsd)
 
53
    if (tsd->initMagic != (int) PIPE_TSD_INIT_MAGIC) {
 
54
       pipe_tsd_init(tsd);
 
55
    }
 
56
-#if defined(PIPE_OS_LINUX) || defined(PIPE_OS_BSD) || defined(PIPE_OS_SOLARIS) || defined(PIPE_OS_APPLE) || defined(PIPE_OS_HAIKU) || defined(PIPE_OS_CYGWIN)
 
57
+#if defined(PIPE_OS_LINUX) || defined(PIPE_OS_BSD) || defined(PIPE_OS_SOLARIS) || defined(PIPE_OS_APPLE) || defined(PIPE_OS_HAIKU) || defined(PIPE_OS_CYGWIN) || defined(PIPE_OS_HURD)
 
58
    return pthread_getspecific(tsd->key);
 
59
 #elif defined(PIPE_SUBSYSTEM_WINDOWS_USER)
 
60
    assert(0);
 
61
@@ -491,7 +491,7 @@ pipe_tsd_set(pipe_tsd *tsd, void *value)
 
62
    if (tsd->initMagic != (int) PIPE_TSD_INIT_MAGIC) {
 
63
       pipe_tsd_init(tsd);
 
64
    }
 
65
-#if defined(PIPE_OS_LINUX) || defined(PIPE_OS_BSD) || defined(PIPE_OS_SOLARIS) || defined(PIPE_OS_APPLE) || defined(PIPE_OS_HAIKU) || defined(PIPE_OS_CYGWIN)
 
66
+#if defined(PIPE_OS_LINUX) || defined(PIPE_OS_BSD) || defined(PIPE_OS_SOLARIS) || defined(PIPE_OS_APPLE) || defined(PIPE_OS_HAIKU) || defined(PIPE_OS_CYGWIN) || defined(PIPE_OS_HURD)
 
67
    if (pthread_setspecific(tsd->key, value) != 0) {
 
68
       perror("pthread_set_specific() failed");
 
69
       exit(-1);