X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fchdir-safer.c;h=09b2738ffa1d68113cbe7a935ebdb0c81686d8d4;hb=2e7980e7a83a290bfaf0638bd95a9cbfeec0f67d;hp=5c313bcab9eb3829f8f2121e32701a249e3eb74a;hpb=79c0a43808d9ca85acd04600149fc1a9b75bd1b9;p=gnulib.git diff --git a/lib/chdir-safer.c b/lib/chdir-safer.c index 5c313bcab..09b2738ff 100644 --- a/lib/chdir-safer.c +++ b/lib/chdir-safer.c @@ -18,9 +18,7 @@ /* written by Jim Meyering */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include "chdir-safer.h" @@ -32,14 +30,6 @@ #include #include "same-inode.h" -#ifndef O_DIRECTORY -# define O_DIRECTORY 0 -#endif - -#ifndef O_NOFOLLOW -# define O_NOFOLLOW 0 -#endif - /* Like chdir, but fail if DIR is a symbolic link to a directory (or similar funny business), or if DIR is not readable. This avoids a minor race condition between when a directory is created or statted