-EPICS_BASE = $(EPICS_HOME)/base
+EPICS_BASE = $(EPICS_HOME)/R3.14.0.alpha1
 CFLAGS = -g -ansi -Wall -I$(EPICS_BASE)/include \
   -I$(EPICS_BASE)/include/os/$(HOST_ARCH)
 
 
                status = ca_array_get_callback(ca_field_type(chan), ca_element_count(chan), chan, Param_copyToAllocMem, result);
                Param_strerror((Param *) my, ca_message(status));
 
-               if((status = ca_pend_event(TIMEOUT)) == ECA_TIMEOUT) {
-                       Param_strerror((Param *) my, ca_message(status));
-               } else if (status != ECA_NORMAL) {
-                       Param_strerror((Param *) my, ca_message(status));
-                       retVal = -1;
+#if 0
+               if(ca_test_io() == ECA_IOINPROGRESS) {
+#endif
+                       if((status = ca_pend_event(TIMEOUT)) == ECA_TIMEOUT) {
+                               Param_strerror((Param *) my, ca_message(status));
+                       } else if (status != ECA_NORMAL) {
+                               Param_strerror((Param *) my, ca_message(status));
+                               retVal = -1;
+                       }
+#if 0
+               } else {
+                       if((status = ca_poll()) == ECA_TIMEOUT) {
+                               Param_strerror((Param *) my, ca_message(status));
+                       } else if (status != ECA_NORMAL) {
+                               Param_strerror((Param *) my, ca_message(status));
+                               retVal = -1;
+                       }
                }
+#endif
        }
 
        if((status = ca_clear_channel(chan)) != ECA_NORMAL) {
 
  * Section containing struct Param (different in the different param.h's) *
  **************************************************************************/
 
+#ifndef STATESET_ST
+
 #define PG_MAX_QUERY_LEN 1024
 #define PG_MAX_CLAUSE_LEN 256
 
 
 #endif
 
+#endif
+