Mercurial > hg > octave-lojdl > gnulib-hg
changeset 7242:39ce78c817b1
* lib/chdir-long.c: Include <fcntl.h>, 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.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Thu, 31 Aug 2006 21:54:54 +0000 |
parents | aed440dca701 |
children | 519053e57f74 |
files | lib/chdir-long.c modules/chdir-long |
diffstat | 2 files changed, 3 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- 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 <fcntl.h> #include <stdlib.h> #include <stdbool.h> #include <string.h> -#include <unistd.h> #include <errno.h> #include <stdio.h> #include <assert.h> -#include <limits.h> #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