[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gnats/200: gnatsd.h includes <crypt.h> for crypt(3) rather than <unistd.
From: |
soren |
Subject: |
gnats/200: gnatsd.h includes <crypt.h> for crypt(3) rather than <unistd.h> |
Date: |
31 May 2001 15:28:21 -0000 |
>Number: 200
>Category: gnats
>Synopsis: gnatsd.h includes <crypt.h> for crypt(3) rather than <unistd.h>
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu May 31 08:34:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Soren S. Jorvang
>Release: anoncvs as of today
>Organization:
>Environment:
NetBSD-current as of today
>Description:
<crypt.h> is a little outdated, and modern systems specify
<unistd.h> for crypt(3). E.g. *BSD don't have <crypt.h>.
>How-To-Repeat:
Try to build GNATS 4 on NetBSD.
>Fix:
Index: gnatsd.c
===================================================================
RCS file: /cvs/gnats/gnats/gnats/gnatsd.c,v
retrieving revision 1.40
diff -u -w -r1.40 gnatsd.c
--- gnatsd.c 2001/04/15 18:11:51 1.40
+++ gnatsd.c 2001/05/31 15:26:03
@@ -24,9 +24,7 @@
#include "gnatsd.h"
#include "query.h"
-#ifdef HAVE_LIBCRYPT
-#include <crypt.h>
-#endif
+#include <unistd.h>
#if defined (__svr4__) && defined (__sun__)
#undef SIG_IGN
>Release-Note:
>Audit-Trail:
>Unformatted:
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- gnats/200: gnatsd.h includes <crypt.h> for crypt(3) rather than <unistd.h>,
soren <=