🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by James Clark Sat, 15 Aug 1992 17:11
sed 1.09
#656
Author: James Clark
Date: Sat, 15 Aug 1992 17:11
91 lines
2376 bytes
I built sed 1.09 on a Sparc 2 running SunOS 4.1.1. gcc 2.2.2 was
installed and I had run fixincludes.  The make failed with memmove
undefined.  Here's a fix (this also fixes a similar problem with
memchr and updates configure.in for autoconf 1.0):

*** configure.in.~1~	Fri May 15 07:55:15 1992
--- configure.in	Sat Aug 15 18:09:16 1992
***************
*** 1,6 ****
  dnl Process this file with autoconf to produce a configure script.
  AC_INIT(sed.c)
! AC_PROG_GCC
  AC_PROG_CPP
  AC_PROG_INSTALL
  AC_MINIX
--- 1,6 ----
  dnl Process this file with autoconf to produce a configure script.
  AC_INIT(sed.c)
! AC_PROG_CC
  AC_PROG_CPP
  AC_PROG_INSTALL
  AC_MINIX
***************
*** 10,13 ****
--- 10,14 ----
  AC_CHAR_UNSIGNED
  AC_VPRINTF
  AC_ALLOCA
+ AC_HAVE_FUNCS(memmove memchr)
  AC_OUTPUT(Makefile)
*** utils.c.~1~	Tue Nov  5 07:15:58 1991
--- utils.c	Sat Aug 15 18:09:02 1992
***************
*** 207,213 ****
  	return ret;
  }
  
! #if !defined(USG) && !defined(STDC_HEADERS)
  /*
   * memchr - search for a byte
   *
--- 207,213 ----
  	return ret;
  }
  
! #ifndef HAVE_MEMCHR
  /*
   * memchr - search for a byte
   *
***************
*** 233,241 ****
  
  	return 0;
  }
! #endif
  
! #if !defined(STDC_HEADERS)
  /*
   * memmove - copy bytes, being careful about overlap.
   */
--- 233,241 ----
  
  	return 0;
  }
! #endif /* not HAVE_MEMCHR */
  
! #ifndef HAVE_MEMMOVE
  /*
   * memmove - copy bytes, being careful about overlap.
   */
***************
*** 267,273 ****
  
  	return(dst);
  }
! #endif
  
  /* Implement a variable sized buffer of 'stuff'.  We don't know what it is,
     nor do we care, as long as it doesn't mind being aligned by malloc. */
--- 267,273 ----
  
  	return(dst);
  }
! #endif /* not HAVE_MEMMOVE */
  
  /* Implement a variable sized buffer of 'stuff'.  We don't know what it is,
     nor do we care, as long as it doesn't mind being aligned by malloc. */


James Clark
jjc@jclark.com
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads