gnats-prs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gnats/200: gnatsd.h includes <crypt.h> for crypt(3) rather than <uni


From: Milan Zamazal
Subject: Re: gnats/200: gnatsd.h includes <crypt.h> for crypt(3) rather than <unistd.h>
Date: 10 Jun 2001 17:34:00 -0000

The following reply was made to PR gnats/200; it has been noted by GNATS.

From: Milan Zamazal <address@hidden>
To: address@hidden
Cc: address@hidden
Subject: Re: gnats/200: gnatsd.h includes <crypt.h> for crypt(3) rather than 
<unistd.h>
Date: 10 Jun 2001 17:25:41 +0200

 >>>>> "s" == soren  <address@hidden> writes:
 
     s> <crypt.h> is a little outdated, and modern systems specify
     s> <unistd.h> for crypt(3). E.g. *BSD don't have <crypt.h>.
 
 [...]
 
     >> Fix:
     s> Index: gnatsd.c
     s> ===================================================================
     s> RCS file: /cvs/gnats/gnats/gnats/gnatsd.c,v
     s> retrieving revision 1.40
     s> diff -u -w -r1.40 gnatsd.c
     s> --- gnatsd.c    2001/04/15 18:11:51     1.40
     s> +++ gnatsd.c    2001/05/31 15:26:03
     s> @@ -24,9 +24,7 @@
     s>  #include "gnatsd.h"
     s>  #include "query.h"
  
     s> -#ifdef HAVE_LIBCRYPT
     s> -#include <crypt.h>
     s> -#endif
     s> +#include <unistd.h>
  
     s>  #if defined (__svr4__) && defined (__sun__)
     s>  #undef SIG_IGN
 
 Well, GNATS should run on less modern systems too, so I now include
 crypt.h only if available.  That should fix the build problems on
 systems having crypt in unistd.h.
 
 Thanks for the report.
 
 Regards,
 
 Milan Zamazal
 
 -- 
 http://www.zamazal.org


reply via email to

[Prev in Thread] Current Thread [Next in Thread]