Subject: Re: sigsetjmp (), siglongjmp ()
To: None <srcF93@hamp.hampshire.edu, current-users@netbsd.org>
From: Bernd Ernesti <erbe0011@FH-Karlsruhe.DE>
List: current-users
Date: 11/14/1994 09:21:24
Stephen Champion writes:

>	I have been trying to compile Elm 2.4, and have found a problem that 
>is currently preventing me from linking.
>
>	Specifically, the symbols _siglongjmp and _sigsetjmp are not defined.
[..]

Use this diff:

diff -c Configure-orig Configure
*** Configure-orig	Mon May 30 16:55:55 1994
--- Configure	Thu Sep 29 12:57:05 1994
***************
*** 2465,2470 ****
--- 2465,2472 ----
      lock_dir=/usr/spool/uucp
  elif $test -d /var/spool/locks ; then
      lock_dir=/var/spool/locks
+ elif $test -d /var/spool/lock ; then
+     lock_dir=/var/spool/lock
  elif $test -d /var/spool/uucp ; then
      lock_dir=/var/spool/uucp
  else
diff -c hdrs/defs.h-orig hdrs/defs.h
*** hdrs/defs.h-orig	Thu Sep  1 19:42:39 1994
--- hdrs/defs.h	Wed Sep 28 20:47:56 1994
***************
*** 680,686 ****
  #endif /* SIGSET */
  #endif /* POSIX_SIGNALS */
  
! #if defined(POSIX_SIGNALS) && !defined(__386BSD__)
  # define JMP_BUF		sigjmp_buf
  # define SETJMP(env)		sigsetjmp((env), 1)
  # define LONGJMP(env,val)	siglongjmp((env), (val))
--- 680,686 ----
  #endif /* SIGSET */
  #endif /* POSIX_SIGNALS */
  
! #if defined(POSIX_SIGNALS) && !defined(__386BSD__) && !defined(__NetBSD__)
  # define JMP_BUF		sigjmp_buf
  # define SETJMP(env)		sigsetjmp((env), 1)
  # define LONGJMP(env,val)	siglongjmp((env), (val))
diff -c utils/newmail.c-orig utils/newmail.c
*** utils/newmail.c-orig	Mon May 30 16:32:01 1994
--- utils/newmail.c	Tue Sep 27 23:13:24 1994
***************
*** 246,252 ****
  
  extern int errno;
  
! #if defined(BSD) && !defined(__convex__)
          time_t utime_buffer[2];         /* utime command */
  #else
          struct utimbuf utime_buffer;    /* utime command */
--- 246,252 ----
  
  extern int errno;
  
! #if defined(BSD) && !defined(__convex__) && !defined(__NetBSD__)
          time_t utime_buffer[2];         /* utime command */
  #else
          struct utimbuf utime_buffer;    /* utime command */
***************
*** 472,478 ****
  	      /* try to set the file access times back, ignore
  		 failures */
  
! #if defined(BSD) && !defined(__convex__)
  	      utime(cur_folder->foldername, utime_buffer);
  #else
                utime(cur_folder->foldername, &utime_buffer);
--- 472,478 ----
  	      /* try to set the file access times back, ignore
  		 failures */
  
! #if defined(BSD) && !defined(__convex__) && !defined(__NetBSD__)
  	      utime(cur_folder->foldername, utime_buffer);
  #else
                utime(cur_folder->foldername, &utime_buffer);
***************
*** 857,863 ****
  	
  	/* retain the access times for later use */
  
! #if defined(BSD) && !defined(__convex__)
          utime_buffer[0]     = buffer.st_atime;
          utime_buffer[1]     = buffer.st_mtime;
  #else
--- 857,863 ----
  	
  	/* retain the access times for later use */
  
! #if defined(BSD) && !defined(__convex__) && !defined(__NetBSD__)
          utime_buffer[0]     = buffer.st_atime;
          utime_buffer[1]     = buffer.st_mtime;
  #else