summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-10-15 16:04:38 (GMT)
committerKaren Arutyunov <karen@codesynthesis.com>2017-10-15 16:04:38 (GMT)
commit3818e0742be6917b2957baea7b6aa617a07686dc (patch)
treee70ccc5db07a93d764d3e31fc5ecad415321cc7e
parent2a969b7f4bdb223d3626dc14b684701942ccafb2 (diff)
Fix broken gcc compilation on MacOS
-rw-r--r--libpq/postgresql/pg_config.h4
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