You are viewing a plain text version of this content. The canonical link for it is here.
Posted to test-cvs@httpd.apache.org by sc...@apache.org on 2003/11/16 03:08:06 UTC
cvs commit: httpd-test/specweb99/specweb99-1.3 mod_specweb99.c mod_specweb99.h
sctemme 2003/11/15 18:08:06
Modified: specweb99/specweb99-1.3 mod_specweb99.c mod_specweb99.h
Log:
Ugly fix to make the module compile on linux. Tested on linux (RH8.0 ==
2.4.20-20.8, glibc 2.3)(compile), Solaris 7 (compile), Darwin 6.8 (compile
and run).
Revision Changes Path
1.5 +7 -2 httpd-test/specweb99/specweb99-1.3/mod_specweb99.c
Index: mod_specweb99.c
===================================================================
RCS file: /home/cvs/httpd-test/specweb99/specweb99-1.3/mod_specweb99.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- mod_specweb99.c 3 Feb 2003 17:11:01 -0000 1.4
+++ mod_specweb99.c 16 Nov 2003 02:08:06 -0000 1.5
@@ -591,9 +591,14 @@
_my->up_lastmod = (time_t) 0L;
_my->cad_lastmod = (time_t) 0L;
#else
+#ifdef LINUX
+ _my->up_lastmod = (time_t) 0L;
+ _my->cad_lastmod = (time_t) 0L;
+#else
_my->up_lastmod.tv_sec = _my->up_lastmod.tv_nsec = 0;
_my->cad_lastmod.tv_sec = _my->cad_lastmod.tv_nsec = 0;
-#endif
+#endif /* LINUX */
+#endif /* SOLARIS2 */
_my->up = NULL;
_my->cad = NULL;
1.3 +6 -1 httpd-test/specweb99/specweb99-1.3/mod_specweb99.h
Index: mod_specweb99.h
===================================================================
RCS file: /home/cvs/httpd-test/specweb99/specweb99-1.3/mod_specweb99.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- mod_specweb99.h 3 Feb 2003 17:11:01 -0000 1.2
+++ mod_specweb99.h 16 Nov 2003 02:08:06 -0000 1.3
@@ -171,9 +171,14 @@
time_t up_lastmod;
time_t cad_lastmod;
#else
+#ifdef LINUX
+ time_t up_lastmod;
+ time_t cad_lastmod;
+#else
struct timespec up_lastmod;
struct timespec cad_lastmod;
-#endif
+#endif /* LINUX */
+#endif /* SOLARIS2 */
char *up_path;
u_int32_t *up;
u_int16_t up_count;