diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2017-10-15 19:04:38 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2017-10-15 19:04:38 +0300 |
commit | 3818e0742be6917b2957baea7b6aa617a07686dc (patch) | |
tree | e70ccc5db07a93d764d3e31fc5ecad415321cc7e | |
parent | 2a969b7f4bdb223d3626dc14b684701942ccafb2 (diff) |
Fix broken gcc compilation on MacOS
-rw-r--r-- | libpq/postgresql/pg_config.h | 4 |
1 files 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 |