X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-lock.c;h=5faa8d87f04f2dca2d70071c28e83b719bbf9e11;hb=314fcbb7de94709b92edf1b68f62ca6aed8d4dbc;hp=2153f223e820b41293801b9e3a1977aebac47508;hpb=a897449aaae8e6c051f3b9daaf984de5c5e092f3;p=gnulib.git diff --git a/tests/test-lock.c b/tests/test-lock.c index 2153f223e..5faa8d87f 100644 --- a/tests/test-lock.c +++ b/tests/test-lock.c @@ -1,10 +1,10 @@ /* Test of locking in multithreaded situations. - Copyright (C) 2005 Free Software Foundation, Inc. + Copyright (C) 2005, 2008 Free Software Foundation, Inc. - This program is free software; you can redistribute it and/or modify + 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 - the Free Software Foundation; either version 2, or (at your option) - any later version. + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -12,14 +12,11 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + along with this program. If not, see . */ /* Written by Bruno Haible , 2005. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #if USE_POSIX_THREADS || USE_SOLARIS_THREADS || USE_PTH_THREADS || USE_WIN32_THREADS @@ -74,7 +71,7 @@ # undef USE_PTH_THREADS # undef USE_WIN32_THREADS #endif -#include "lock.h" +#include "glthread/lock.h" #if ENABLE_DEBUGGING # define dbgprintf printf @@ -681,9 +678,12 @@ main () /* No multithreading available. */ +#include + int main () { + fputs ("multithreading not enabled\n", stderr); return 77; }