Path: utzoo!utgpu!watmath!uunet!tut.cis.ohio-state.edu!RVL2.ECN.PURDUE.EDU!lewie From: lewie@RVL2.ECN.PURDUE.EDU (Jeff Lewis) Newsgroups: gnu.emacs.bug Subject: error in recently distributed sunmap.c Message-ID: <8903172020.AA16263@rvl2.ecn.purdue.edu> Date: 17 Mar 89 20:20:27 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 48 I had to make the following changes to sunmap.c to get it to work on my system: *** sunmap.c.orig Fri Mar 17 14:55:27 1989 --- sunmap.c Fri Mar 17 15:12:26 1989 *************** *** 31,36 **** --- 31,37 ---- #include #include #include + #include extern char **environ; extern int etext; *************** *** 60,66 **** * rounded up to the next page boundary we can't use start_of_data() because * Dynamic comes first */ ! pagemask = PAGSIZ - 1; sod = (int)&etext + pagemask; sod &= ~pagemask; --- 61,67 ---- * rounded up to the next page boundary we can't use start_of_data() because * Dynamic comes first */ ! pagemask = DATA_ALIGN - 1; sod = (int)&etext + pagemask; sod &= ~pagemask; *************** *** 136,142 **** * Calculate the start of the data segment, which is just the etext * rounded up to the next page boundary */ ! pagemask = PAGSIZ - 1; sod = (int)&etext + pagemask; sod &= ~pagemask; --- 137,143 ---- * Calculate the start of the data segment, which is just the etext * rounded up to the next page boundary */ ! pagemask = DATA_ALIGN - 1; sod = (int)&etext + pagemask; sod &= ~pagemask;