[comp.lang.perl] Think I found it

itkin@mrspoc.Transact.COM (Steven M. List) (10/20/90)

I just posted a message (before lunch) about the problem in compiling
hash.c at patchlevel 36.  After lunch (maybe increasing blood sugar helped
my thought processes?), I looked at where the problem was occurring.  Well,
after examining perl.h, I found that all the other dbm_() calls were
#defined to something else if ODBM is #defined EXCEPT dbm_nextkey().  And
that was the line that was blowing up.  So I added a #define for
dbm_nextkey() and it now compiles.  Being impatient, I'm posting this
message before I find out if it loads or works, but couldn't wait!!

Here's the patch...

*** perl.h.old	Fri Oct 19 13:34:17 1990
--- perl.h	Fri Oct 19 13:30:26 1990
***************
*** 253,254
  #define dbm_firstkey(db) firstkey()
  #endif /* ODBM */

--- 253,256 -----
  #define dbm_firstkey(db) firstkey()
+ /* this line added LOCAL at mrspoc */
+ #define dbm_nextkey(db,dkey) nextkey(dkey)
  #endif /* ODBM */

-- 
 +----------------------------------------------------------------------------+
 :                Steven List @ Transact Software, Inc. :^>~                  :
 :           Chairman, Unify User Group of Northern California                :
 :     {apple,coherent,limbo,mips,pyramid,ubvax}!itkin@guinan.Transact.COM    :