From 5710a1afa99d21787b0eea1a876115767684329d Mon Sep 17 00:00:00 2001 From: Elena Zannoni Date: Thu, 7 Aug 2003 17:49:22 +0000 Subject: 2003-08-07 Elena Zannoni * configure.in: Don't generate config.h from config.hin. * configure: Regenerate. * config.hin: Remove file. * gdb.mi/pthreads.c: Remove include of config.h, and other ifdefs. * gdb.threads/pthreads.c: Ditto. --- gdb/testsuite/gdb.threads/pthreads.c | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'gdb/testsuite/gdb.threads/pthreads.c') diff --git a/gdb/testsuite/gdb.threads/pthreads.c b/gdb/testsuite/gdb.threads/pthreads.c index b8f126d..fdc0324 100644 --- a/gdb/testsuite/gdb.threads/pthreads.c +++ b/gdb/testsuite/gdb.threads/pthreads.c @@ -1,26 +1,4 @@ #include - -#include "config.h" - -#ifndef HAVE_PTHREAD_H - -/* Don't even try to compile. In fact, cause a syntax error that we can - look for as a compiler error message and know that we have no pthread - support. In that case we can just suppress the test completely. */ - -#error "no posix threads support" - -#else - -/* OK. We have the right header. If we try to compile this and fail, then - there is something wrong and the user should know about it so the testsuite - should issue an ERROR result.. */ - -#ifdef __linux__ -#define _MIT_POSIX_THREADS 1 /* GNU/Linux (or at least RedHat 4.0) - needs this */ -#endif - #include /* Under OSF 2.0 & 3.0 and HPUX 10, the second arg of pthread_create @@ -168,4 +146,3 @@ main(argc, argv) exit(0); } -#endif /* ifndef HAVE_PTHREAD_H */ -- cgit v1.1