bug-gnulib
[Top][All Lists]
Advanced

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

Re: coreutils CVS on NetBSD 3.0


From: Paul Eggert
Subject: Re: coreutils CVS on NetBSD 3.0
Date: Mon, 09 Oct 2006 12:35:40 -0700
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux)

Bruno Haible <address@hidden> writes:

> filemode.c:171: warning: implicit declaration of function `strmode'

Thanks for reporting this.  It's better to fix this in filemode.h, for
the benefit of filemode's users, so I installed this into gnulib:

2006-10-09  Paul Eggert  <address@hidden>

        * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
        for NetBSD.  Problem reported by Bruno Haible.

--- lib/filemode.h      3 Jul 2006 08:32:46 -0000       1.6
+++ lib/filemode.h      9 Oct 2006 19:33:34 -0000
@@ -22,7 +22,8 @@
 # include <sys/stat.h>
 
 # if HAVE_DECL_STRMODE
-#  include <string.h>
+#  include <string.h> /* FreeBSD, OpenBSD */
+#  include <unistd.h> /* NetBSD */
 # else
 void strmode (mode_t mode, char *str);
 # endif




reply via email to

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