Portmap compile failure patch

Rainer Peter Feller rainer at maren.desy.de
Wed May 7 06:16:47 PDT 2003


On Wed, 7 May 2003, Bill Maltby - LFS Related wrote:

> Date: Wed, 7 May 2003 08:44:42 -0400 (EDT)
> From: Bill Maltby - LFS Related <lfsbill at wlmcs.com>
> Reply-To: blfs-dev at linuxfromscratch.org
> To: blfs-dev at linuxfromscratch.org
> Subject: Portmap compile failure patch
>
> Portmap 5.1 (beta) fails to compile in portmap.c with a problem with
> errno.
>
> --
> Bill Maltby
> lfsbill at wlmcs.com

cp portmap.c portmap.c.bak
sed s%'extern int errno;'%'#include <errno.h>'% <portmap.c.bak >portmap.c

try "search.linuxfromscratch.org"

  H
CUH Rainer Peter Feller
  H
-------------- next part --------------
--- portmap.c.H1	2003-05-07 08:26:32.000000000 -0400
+++ portmap.c	2003-05-07 08:29:21.000000000 -0400
@@ -100,6 +100,7 @@
 
 extern char *strerror();
 #include <stdlib.h>
+#include <errno.h>
 
 #ifndef LOG_PERROR
 #define LOG_PERROR 0


More information about the blfs-dev mailing list