From c54b8b69ede9d92e802baa1163d9cd734b034fb4 Mon Sep 17 00:00:00 2001 From: rsc Date: Fri, 27 Jan 2006 05:51:54 +0000 Subject: bsd --- include/libc.h | 11 ----------- include/u.h | 1 + 2 files changed, 1 insertion(+), 11 deletions(-) (limited to 'include') diff --git a/include/libc.h b/include/libc.h index 1f867421..10000b57 100644 --- a/include/libc.h +++ b/include/libc.h @@ -904,17 +904,6 @@ extern int post9pservice(int, char*); # endif #endif -/* this really shouldn't be here */ -#if defined(__OpenBSD__) || (defined(__NetBSD__) && !defined(sched_yield)) -#define sched_yield() \ - do { \ - struct timespec ts; \ - ts.tv_sec = 0; \ - ts.tv_nsec = 10; \ - nanosleep(&ts, NULL); \ - } while(0) -#endif - /* command line */ extern char *argv0; extern void __fixargv0(void); diff --git a/include/u.h b/include/u.h index c3f0081f..466f3eab 100644 --- a/include/u.h +++ b/include/u.h @@ -154,6 +154,7 @@ typedef int32_t s32int; * Gcc is too smart for its own good. */ #if defined(__GNUC__) +# undef strcmp /* causes way too many warnings */ # if __GNUC__ >= 4 || (__GNUC__==3 && !defined(__APPLE_CC__)) # undef AUTOLIB # define AUTOLIB(x) int __p9l_autolib_ ## x __attribute__ ((weak)); -- cgit v1.2.3