You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl-cvs@perl.apache.org by st...@apache.org on 2002/07/11 20:25:55 UTC
cvs commit: modperl-2.0/src/modules/perl modperl_apache_includes.h
stas 2002/07/11 11:25:55
Modified: src/modules/perl modperl_apache_includes.h
Log:
add apr_time_* back-compat macros
Revision Changes Path
1.16 +13 -0 modperl-2.0/src/modules/perl/modperl_apache_includes.h
Index: modperl_apache_includes.h
===================================================================
RCS file: /home/cvs/modperl-2.0/src/modules/perl/modperl_apache_includes.h,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- modperl_apache_includes.h 28 May 2002 00:42:58 -0000 1.15
+++ modperl_apache_includes.h 11 Jul 2002 18:25:55 -0000 1.16
@@ -32,4 +32,17 @@
typedef unsigned long apr_os_thread_t;
#endif
+/* XXX: these backcompat macros can be deleted when we bump up the
+ * minimal supported httpd version to 2.0.40 or higher
+ */
+#ifndef apr_time_sec
+#define apr_time_sec(time) ((apr_int64_t)((time) / APR_USEC_PER_SEC))
+#endif
+#ifndef apr_time_usec
+#define apr_time_usec(time) ((apr_int32_t)((time) % APR_USEC_PER_SEC))
+#endif
+#ifndef apr_time_from_sec
+#define apr_time_from_sec(sec) ((apr_time_t)(sec) * APR_USEC_PER_SEC)
+#endif
+
#endif /* MODPERL_APACHE_INCLUDES_H */