couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kxe...@apache.org
Subject couchdb commit: updated refs/heads/1.x.x to 90a9dac
Date Sat, 22 Aug 2015 18:49:18 GMT
Repository: couchdb
Updated Branches:
  refs/heads/1.x.x 0c02b2c9a -> 90a9dac99


Fix glibc >= 2.20 support

Since 2.20 _BSD_SOURCE is deprecated in favor of _DEFAULT_SOURCE.
While _DEFAULT_SOURCE is safely ignored in <2.19, it implicitly
overrides _BSD_SOURCE if both are defined which helps to bypass
compilation warning.

COUCHDB-2761


Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/90a9dac9
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/90a9dac9
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/90a9dac9

Branch: refs/heads/1.x.x
Commit: 90a9dac99e38b4f2b0cb896ac7027a0948bd5437
Parents: 0c02b2c
Author: Alexander Shorin <kxepal@apache.org>
Authored: Sat Aug 22 21:48:54 2015 +0300
Committer: Alexander Shorin <kxepal@apache.org>
Committed: Sat Aug 22 21:48:54 2015 +0300

----------------------------------------------------------------------
 src/couchdb/priv/Makefile.am | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/90a9dac9/src/couchdb/priv/Makefile.am
----------------------------------------------------------------------
diff --git a/src/couchdb/priv/Makefile.am b/src/couchdb/priv/Makefile.am
index a7973ba..9188bf5 100644
--- a/src/couchdb/priv/Makefile.am
+++ b/src/couchdb/priv/Makefile.am
@@ -44,7 +44,7 @@ couchprivlib_LTLIBRARIES = couch_icu_driver.la
 if USE_EJSON_COMPARE_NIF
 couchprivlib_LTLIBRARIES += couch_ejson_compare.la
 couch_ejson_compare_la_SOURCES = couch_ejson_compare/couch_ejson_compare.c
-couch_ejson_compare_la_CPPFLAGS = -D_BSD_SOURCE $(ICU_CPPFLAGS) $(ERLANG_FLAGS)
+couch_ejson_compare_la_CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE $(ICU_CPPFLAGS) $(ERLANG_FLAGS)
 couch_ejson_compare_la_LDFLAGS = -module -avoid-version
 couch_ejson_compare_la_LIBADD = $(ICU_LIBS)
 if WINDOWS
@@ -72,7 +72,7 @@ COUCHJS_SRCS = \
 
 locallibbin_PROGRAMS = couchjs
 couchjs_SOURCES = $(COUCHJS_SRCS)
-couchjs_CFLAGS = -g -Wall -Werror -D_BSD_SOURCE $(CURL_CFLAGS) $(JS_CFLAGS)
+couchjs_CFLAGS = -g -Wall -Werror -D_DEFAULT_SOURCE -D_BSD_SOURCE $(CURL_CFLAGS) $(JS_CFLAGS)
 couchjs_LDADD = $(CURL_LIBS) $(JS_LIBS)
 
 couchpriv_DATA = stat_descriptions.cfg


Mime
View raw message