Index: gw/shared.c
===================================================================
RCS file: /home/cvs/gateway/gw/shared.c,v
retrieving revision 1.42
diff -u -r1.42 shared.c
--- gw/shared.c	9 Jan 2008 20:06:56 -0000	1.42
+++ gw/shared.c	4 Jul 2008 07:09:51 -0000
@@ -123,7 +123,11 @@
              "Using SQLite %s.\n"
 #endif
 #ifdef HAVE_ORACLE
+#if defined(OCI_MAJOR_VERSION) && defined(OCI_MINOR_VERSION)
              "Using Oracle OCI %d.%d.\n"
+#else
+             "Using Oracle OCI.\n"
+#endif
 #endif
              "Using %s malloc.\n",
 			 boxname, GW_VERSION,
@@ -150,8 +154,10 @@
              SQLITE_VERSION,
 #endif
 #ifdef HAVE_ORACLE
+#if defined(OCI_MAJOR_VERSION) && defined(OCI_MINOR_VERSION)
              OCI_MAJOR_VERSION, OCI_MINOR_VERSION,
 #endif
+#endif
              octstr_get_cstr(gwmem_type()));
 }
 
