[Top][All Lists]

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

openat.h to port recent fts to Solaris 10

From: Paul Eggert
Subject: openat.h to port recent fts to Solaris 10
Date: Mon, 17 Apr 2006 13:49:24 -0700
User-agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux)

I installed this to work around a build failure on Solaris 10, which
has a native openat:

2006-04-17  Paul Eggert  <address@hidden>

        * openat.h (openat_needs_fchdir) [defined __OPENAT_PREFIX]:
        Turn this into a macro that always returns true.

--- openat.h.~1.18.~    2006-02-20 22:42:29.000000000 -0800
+++ openat.h    2006-04-17 13:18:20.000000000 -0700
@@ -75,11 +75,13 @@ DIR *fdopendir (int fd);
 int fstatat (int fd, char const *file, struct stat *st, int flag);
 # define unlinkat __OPENAT_ID (unlinkat)
 int unlinkat (int fd, char const *file, int flag);
+bool openat_needs_fchdir (void);
 # define openat_permissive(Fd, File, Flags, Mode, Cwd_errno) \
     openat (Fd, File, Flags, Mode)
+# define openat_needs_fchdir() false
@@ -115,5 +117,3 @@ lchmodat (int fd, char const *file, mode
   return fchmodat (fd, file, mode, AT_SYMLINK_NOFOLLOW);
-bool openat_needs_fchdir (void);

reply via email to

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