summaryrefslogtreecommitdiff
path: root/nptl/pthread_attr_init.c
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2012-06-05 02:09:04 +0400
committerIgor Pashev <pashev.igor@gmail.com>2012-06-05 02:09:04 +0400
commit415ee7d6e47dcb3e0906a7bebc6d52ab8ed899da (patch)
treef7773ad82023c8616b339d84faa4bb7643af0311 /nptl/pthread_attr_init.c
parent3cc0cd4c5b3bed6f7d9aff26322d505785e11aa9 (diff)
downloadglibc-415ee7d6e47dcb3e0906a7bebc6d52ab8ed899da.tar.gz
Merged changes from kopensolaris-gnu project
http://git.csclub.uwaterloo.ca/?p=kopensolaris-gnu/glibc.git Commits from 9157319 to bad8ac8. This is only partial patch, some changes to not apply and will be resovled and committed next.
Diffstat (limited to 'nptl/pthread_attr_init.c')
-rw-r--r--nptl/pthread_attr_init.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/nptl/pthread_attr_init.c b/nptl/pthread_attr_init.c
index a7add4b80d..589312f293 100644
--- a/nptl/pthread_attr_init.c
+++ b/nptl/pthread_attr_init.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2002, 2003, 2004, 2007 Free Software Foundation, Inc.
+/* Copyright (C) 2002, 2003, 2004, 2007, 2008 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@redhat.com>, 2002.
@@ -20,13 +20,17 @@
#include <errno.h>
#include <string.h>
#include <unistd.h>
-#include "pthreadP.h"
+#include <pthreadP.h>
#include <shlib-compat.h>
struct pthread_attr *__attr_list;
+#ifndef lll_define_initialized
int __attr_list_lock = LLL_LOCK_INITIALIZER;
+#else
+lll_define_initialized (, __attr_list_lock);
+#endif
int