[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

patch for redhat 6.2J



Dear pdp++ maintainer,

I found possible bug in pdp+2.01.  Here is a patch.

--			NODA Itsuki, PhD	<noda@etl.go.jp>
			Electrotechnical Laboratory, AIST, MITI
			1-1-4 Umezono, Tsukuba, Ibaraki 305 JAPAN
			Tel. +81-298-61-5846  Fax. +81-298-61-5184

						
----------------------------------------------------------------------
diff -r -p pdp++_2.01/src/css/css_builtin.cc pdp++_2.01n/src/css/css_builtin.cc
*** pdp++_2.01/src/css/css_builtin.cc	Mon Jul 24 11:28:14 2000
--- pdp++_2.01n/src/css/css_builtin.cc	Fri Oct 20 03:43:33 2000
***************
*** 47,58 ****
--- 47,61 ----
  #include <ta/taiv_data.h>
  #include <ta/ta_group.h>
  
+ #define __USE_XOPEN	// [I.Noda] added to avoid compiler error 
+ 
  #include <unistd.h>
  #include <values.h>
  #include <stdio.h>
  #include <errno.h>
  #include <time.h>
  #include <sys/time.h>
+ 
  
  // when using the .c version
  // extern "C" {
diff -r -p pdp++_2.01/src/leabra/leabra.cc pdp++_2.01n/src/leabra/leabra.cc
*** pdp++_2.01/src/leabra/leabra.cc	Mon Sep 18 04:33:33 2000
--- pdp++_2.01n/src/leabra/leabra.cc	Fri Oct 20 11:35:13 2000
*************** void LeabraUnitSpec::AdaptThresh(LeabraU
*** 668,674 ****
      u->thr += adapt_thr.t_dt * ((act.thr + adapt_thr.mx_d) - u->thr);
  }
  
! void LeabraUnitSpec::PhaseInit(LeabraUnit* u, LeabraLayer*, int phase) {
    if(!(u->ext_flag & Unit::TARG))
      return;
  
--- 668,674 ----
      u->thr += adapt_thr.t_dt * ((act.thr + adapt_thr.mx_d) - u->thr);
  }
  
! void LeabraUnitSpec::PhaseInit(LeabraUnit* u, LeabraLayer* lay, int phase) {
    if(!(u->ext_flag & Unit::TARG))
      return;