Author: lgo
Date: Tue Dec 29 07:26:10 2009
New Revision: 894320

URL: http://svn.apache.org/viewvc?rev=894320&view=rev
Log:
ra_serf: make svn build with serf 0.3 again.

Found by: hwright

* subversion/libsvn_ra_serf/serf.c
  (load_config): Only call serf_config_credentials_callback when building with
   serf >= 0.4.

Modified:
    subversion/trunk/subversion/libsvn_ra_serf/serf.c

Modified: subversion/trunk/subversion/libsvn_ra_serf/serf.c
URL: 
http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_ra_serf/serf.c?rev=894320&r1=894319&r2=894320&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_ra_serf/serf.c (original)
+++ subversion/trunk/subversion/libsvn_ra_serf/serf.c Tue Dec 29 07:26:10 2009
@@ -306,10 +306,12 @@
   /* Setup authentication. */
   SVN_ERR(load_http_auth_types(pool, config, server_group,
                                &session->authn_types));
+#if SERF_VERSION_AT_LEAST(0, 4, 0)
   /* TODO: convert string authn types to SERF_AUTHN bitmask.
      serf_config_authn_types(session->context, session->authn_types);*/
   serf_config_credentials_callback(session->context,
                                    svn_ra_serf__credentials_callback);
+#endif
 
   return SVN_NO_ERROR;
 }


Reply via email to