From 9f831376316dea15f98086cbcd86e1b51385d7eb Mon Sep 17 00:00:00 2001 From: Martin Kraemer Date: Fri, 29 Nov 2002 11:15:43 +0000 Subject: [PATCH] Portability fixes (MFH) --- ext/bcmath/libbcmath/src/private.h | 2 +- ext/gd/gdcache.h | 2 +- ext/standard/mail.c | 4 +++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ext/bcmath/libbcmath/src/private.h b/ext/bcmath/libbcmath/src/private.h index eaf4f444b2..4458346626 100644 --- a/ext/bcmath/libbcmath/src/private.h +++ b/ext/bcmath/libbcmath/src/private.h @@ -32,7 +32,7 @@ /* "Private" routines to bcmath. */ /* variables */ -bc_num _bc_Free_list; +extern bc_num _bc_Free_list; /* routines */ int _bc_do_compare (bc_num n1, bc_num n2, int use_sign, int ignore_last); diff --git a/ext/gd/gdcache.h b/ext/gd/gdcache.h index 06bf0ee6ce..87ab305aba 100644 --- a/ext/gd/gdcache.h +++ b/ext/gd/gdcache.h @@ -40,7 +40,7 @@ /* header */ /*********************************************************/ -#if (!defined _OSD_POSIX) && HAVE_MALLOC_H +#if (!defined(_OSD_POSIX) && !defined(__FreeBSD__)) && HAVE_MALLOC_H #include #else #include /* BS2000/OSD defines malloc() & friends in stdlib.h */ diff --git a/ext/standard/mail.c b/ext/standard/mail.c index e678bcc86e..24d125c3df 100644 --- a/ext/standard/mail.c +++ b/ext/standard/mail.c @@ -208,8 +208,10 @@ PHPAPI int php_mail(char *to, char *subject, char *message, char *headers, char #else #if defined(EX_TEMPFAIL) if ((ret != EX_OK)&&(ret != EX_TEMPFAIL)) -#else +#elif defined(EX_OK) if (ret != EX_OK) +#else + if (ret != 0) #endif #endif { -- 2.40.0