You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ja...@apache.org on 2008/11/06 13:58:36 UTC

svn commit: r711852 - /incubator/couchdb/trunk/configure.ac

Author: jan
Date: Thu Nov  6 04:58:29 2008
New Revision: 711852

URL: http://svn.apache.org/viewvc?rev=711852&view=rev
Log:
Silence warning on Linux by properly exporting `crypt()`.

Modified:
    incubator/couchdb/trunk/configure.ac

Modified: incubator/couchdb/trunk/configure.ac
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/configure.ac?rev=711852&r1=711851&r2=711852&view=diff
==============================================================================
--- incubator/couchdb/trunk/configure.ac (original)
+++ incubator/couchdb/trunk/configure.ac Thu Nov  6 04:58:29 2008
@@ -109,7 +109,11 @@
 AC_SUBST(CURL_LIBS) 
 
 case "$(uname -s)" in
-  Linux | FreeBSD)
+  Linux)
+    LIBS="$LIBS -lcrypt"
+    CPPFLAGS="-D_XOPEN_SOURCE $CPPFLAGS"
+    ;;
+  FreeBSD)
     LIBS="$LIBS -lcrypt"
     ;;
   OpenBSD)