From: Paul Eggert Date: Thu, 31 Aug 2006 21:54:54 +0000 (+0000) Subject: * lib/chdir-long.c: Include , for O_DIRECTORY. X-Git-Tag: cvs-readonly~1944 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=efc9686904177e6644b5528c4703f378daaee0b0;p=gnulib.git * lib/chdir-long.c: Include , for O_DIRECTORY. Don't include unistd.h or limits.h; not needed, since chdir-long.h does that for us. (O_DIRECTORY): Remove. * modules/chdir-long (Depends-on): Add fcntl. --- diff --git a/lib/chdir-long.c b/lib/chdir-long.c index 8c15d06d2..50cae34b5 100644 --- a/lib/chdir-long.c +++ b/lib/chdir-long.c @@ -1,5 +1,5 @@ /* provide a chdir function that tries not to fail due to ENAMETOOLONG - Copyright (C) 2004, 2005 Free Software Foundation, Inc. + Copyright (C) 2004, 2005, 2006 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -23,22 +23,17 @@ #include "chdir-long.h" +#include #include #include #include -#include #include #include #include -#include #include "memrchr.h" #include "openat.h" -#ifndef O_DIRECTORY -# define O_DIRECTORY 0 -#endif - #ifndef PATH_MAX # error "compile this file only if your system defines PATH_MAX" #endif diff --git a/modules/chdir-long b/modules/chdir-long index d8cdb87ac..18cb94ca0 100644 --- a/modules/chdir-long +++ b/modules/chdir-long @@ -7,6 +7,7 @@ lib/chdir-long.c m4/chdir-long.m4 Depends-on: +fcntl openat mempcpy memrchr