diff options
Diffstat (limited to 'gnulib-tests/glthread')
-rw-r--r-- | gnulib-tests/glthread/thread.c | 2 | ||||
-rw-r--r-- | gnulib-tests/glthread/thread.h | 11 | ||||
-rw-r--r-- | gnulib-tests/glthread/yield.h | 2 |
3 files changed, 12 insertions, 3 deletions
diff --git a/gnulib-tests/glthread/thread.c b/gnulib-tests/glthread/thread.c index fdec8697..cec0b7c8 100644 --- a/gnulib-tests/glthread/thread.c +++ b/gnulib-tests/glthread/thread.c @@ -1,5 +1,5 @@ /* Creating and controlling threads. - Copyright (C) 2005-2013 Free Software Foundation, Inc. + Copyright (C) 2005-2014 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/gnulib-tests/glthread/thread.h b/gnulib-tests/glthread/thread.h index 0d661096..509db6b3 100644 --- a/gnulib-tests/glthread/thread.h +++ b/gnulib-tests/glthread/thread.h @@ -1,5 +1,5 @@ /* Creating and controlling threads. - Copyright (C) 2005-2013 Free Software Foundation, Inc. + Copyright (C) 2005-2014 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -74,6 +74,9 @@ #include <errno.h> #include <stdlib.h> +#ifndef _GL_INLINE_HEADER_BEGIN + #error "Please include config.h first." +#endif _GL_INLINE_HEADER_BEGIN #ifndef _GLTHREAD_THREAD_INLINE # define _GLTHREAD_THREAD_INLINE _GL_INLINE @@ -120,7 +123,13 @@ extern int glthread_in_use (void); address of a function in libpthread that we don't use. */ # pragma weak pthread_create + +# ifdef __clang__ + /* Without this, clang complains that pthread_sigmask is never declared. */ +# include <signal.h> +# endif # pragma weak pthread_sigmask + # pragma weak pthread_join # ifndef pthread_self # pragma weak pthread_self diff --git a/gnulib-tests/glthread/yield.h b/gnulib-tests/glthread/yield.h index 12cb03b0..b9292247 100644 --- a/gnulib-tests/glthread/yield.h +++ b/gnulib-tests/glthread/yield.h @@ -1,5 +1,5 @@ /* Yielding the processor to other threads and processes. - Copyright (C) 2005-2013 Free Software Foundation, Inc. + Copyright (C) 2005-2014 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by |