* where needed, base on APR_VERSION_AT_LEAST() so we remember what this is about
* where not, axe
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@761084
13f79535-47bb-0310-9956-
ffa450edef68
return rv;
}
-
-#ifndef apr_time_from_msec
-#define apr_time_from_msec(x) (x * 1000)
-#endif
-
-
static apr_status_t hm_watchdog_callback(int state, void *data,
apr_pool_t *pool)
{
#include "serf.h"
#include "apr_uri.h"
#include "apr_strings.h"
+#include "apr_version.h"
#include "ap_mpm.h"
module AP_MODULE_DECLARE_DATA serf_module;
serf_bucket_t *body_bkt;
} s_baton_t;
+#if !APR_VERSION_AT_LEAST(1,4,0)
+#define apr_time_from_msec(x) (x * 1000)
+#endif
/**
* This works right now because all timers are invoked in the single listener
return APR_SUCCESS;
}
-#ifndef apr_time_from_msec
-#define apr_time_from_msec(x) (x * 1000)
-#endif
-
/* TOOD: rewrite drive_serf to make it async */
static int drive_serf(request_rec *r, serf_config_t *conf)
{
module AP_MODULE_DECLARE_DATA dialup_module;
-#ifndef apr_time_from_msec
-#define apr_time_from_msec(x) (x * 1000)
-#endif
-
-
typedef struct dialup_dcfg_t {
apr_size_t bytes_per_second;
} dialup_dcfg_t;
#include "apr_queue.h"
#define APR_WANT_STRFUNC
#include "apr_want.h"
+#include "apr_version.h"
#if APR_HAVE_UNISTD_H
#include <unistd.h>
#define MPM_CHILD_PID(i) (ap_scoreboard_image->parent[i].pid)
+#if !APR_VERSION_AT_LEAST(1,4,0)
+#define apr_time_from_msec(x) (x * 1000)
+#endif
+
/*
* Actual definitions of config globals
*/
return APR_SUCCESS;
}
-#ifndef apr_time_from_msec
-#define apr_time_from_msec(x) (x * 1000)
-#endif
-
static void * APR_THREAD_FUNC listener_thread(apr_thread_t * thd, void *dummy)
{
timer_event_t *ep;
#include "ap_listen.h"
#include "mpm_common.h"
+#include "apr_version.h"
+
+#if !APR_VERSION_AT_LEAST(1,4,0)
+#define apr_time_from_msec(msec) ((apr_time_t)(msec) * 1000)
+#endif
/**
* Create Timers.
return NULL;
}
-#ifndef apr_time_from_msec
-#define apr_time_from_msec(msec) ((apr_time_t)(msec) * 1000)
-#endif
-
static int simple_run_loop(simple_core_t * sc)
{
apr_status_t rv;