Subject: Re: pkg/27267
To: None <irix-pkg-people@netbsd.org, gnats-admin@netbsd.org,>
From: Idar Tollefsen <idart@performancedesign.no>
List: pkgsrc-bugs
Date: 05/26/2005 09:17:01
The following reply was made to PR pkg/27267; it has been noted by GNATS.

From: Idar Tollefsen <idart@performancedesign.no>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/27267
Date: Thu, 26 May 2005 11:16:46 +0200

 This is a multi-part message in MIME format.
 --------------090700050209060604070001
 Content-Type: text/plain; charset=ISO-8859-1; format=flowed
 Content-Transfer-Encoding: 7bit
 
 Please modify this to fix the same problem on SunOS.
 
 Also, sys_nerr and friends are not visible on Solaris 10, at least in 64-bit 
 mode, but strerror() is, so use that in stead. I don't know about other Solaris 
 versions or 32-bit mode, but since strerror() should be a safe choice for all of 
 them.
 
 --------------090700050209060604070001
 Content-Type: text/plain;
  name="patch-ag"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: inline;
  filename="patch-ag"
 
 --- config/imake/imake.c.orig	Wed Feb 13 17:32:00 2002
 +++ config/imake/imake.c	Thu May 26 11:04:00 2005
 @@ -145,11 +145,13 @@
   *	#include INCLUDE_IMAKEFILE
   *	<add any global targets like 'clean' and long dependencies>
   */
 -#if defined(__FreeBSD__) || defined(__NetBSD__)
 +#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__APPLE__) || defined(__linux__) || defined(__sgi) || defined(sun) || defined(__sun)
  /* This needs to be before _POSIX_SOURCE gets defined */
  # include <sys/param.h>
  # include <sys/types.h>
 +#if !defined(__sgi) && !defined(sun) && !defined(__sun)
  # include <sys/sysctl.h>
 +#endif
  # include <sys/stat.h>
  #endif
  #include <stdio.h>
 @@ -281,7 +283,7 @@
   * Xos.h, which we don't want to include here for bootstrapping reasons.
   */
  #ifndef USE_STRERROR
 -# ifndef strerror
 +# if !defined(strerror) && !defined(sun) && !defined(__sun)
  extern char *sys_errlist[];
  extern int sys_nerr;
  #  define strerror(n) \
 
 --------------090700050209060604070001--