From: Michael Olbrich Date: Fri, 24 Dec 2010 14:41:03 +0100 Subject: [PATCH] Fix PowerPC issues with undefined __USE_POSIX Patch borrowed from Debian. Signed-off-by: Michael Olbrich --- include/memcache.h.in | 5 +++++ src/memcache.c | 9 +++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/include/memcache.h.in b/include/memcache.h.in index 2552b30..2b07a3d 100644 --- a/include/memcache.h.in +++ b/include/memcache.h.in @@ -61,6 +61,11 @@ #ifndef MEMCACHE_H #define MEMCACHE_H +/* fix FTBFS on powerpc for Debian libmemcache */ +#ifndef __USE_POSIX +#define __USE_POSIX +#endif + #include #include #include diff --git a/src/memcache.c b/src/memcache.c index 227758d..79b9d37 100644 --- a/src/memcache.c +++ b/src/memcache.c @@ -39,12 +39,17 @@ #include #include #include -#ifdef __linux + +/* fix FTBFS on powerpc for Debian libmemcache. I personally think this + * shouldnt be the case, as Debian Bug#345587 seems to show. */ + +/* #ifdef __linux */ # ifndef __USE_POSIX # define __USE_POSIX #warning "Working around busted-ass Linux header include problems: use FreeBSD instead" #warning "http://www.FreeBSD.org/ - you won't regret it" -# endif +/* #endif */ + #endif #include #include