From 3818e0742be6917b2957baea7b6aa617a07686dc Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Sun, 15 Oct 2017 19:04:38 +0300 Subject: Fix broken gcc compilation on MacOS --- libpq/postgresql/pg_config.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libpq/postgresql/pg_config.h b/libpq/postgresql/pg_config.h index ee4408a..75dda00 100644 --- a/libpq/postgresql/pg_config.h +++ b/libpq/postgresql/pg_config.h @@ -80,7 +80,7 @@ /* * Specific for Mac OS. */ -#ifdef __apple_build_version__ +#ifdef __APPLE__ # define HAVE_DECL_F_FULLFSYNC 1 #else # define HAVE_DECL_F_FULLFSYNC 0 @@ -89,7 +89,7 @@ /* * Specific for FreeBSD and Mac OS. */ -#if defined(__FreeBSD__) || defined(__apple_build_version__) +#if defined(__FreeBSD__) || defined(__APPLE__) # define HAVE_DECL_STRLCAT 1 # define HAVE_DECL_STRLCPY 1 # define STRERROR_R_INT 1 -- cgit v1.1