[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] renameat: port to Solaris 10, which declares renameat in unistd.
From: |
Paul Eggert |
Subject: |
[PATCH] renameat: port to Solaris 10, which declares renameat in unistd.h |
Date: |
Tue, 26 Oct 2010 13:51:06 -0700 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.14) Gecko/20101006 Thunderbird/3.0.9 |
* lib/renameat.c: Include unistd.h before stdio.h, because
Solaris 10 declares renameat in unistd.h. Problem encountered
when building GNU tar 1.24 on Solaris 10.
---
ChangeLog | 8 ++++++++
lib/renameat.c | 6 ++++++
2 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index f18abb1..38888bf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2010-10-26 Paul Eggert <address@hidden>
+
+ renameat: port to Solaris 10, which declares renameat in unistd.h
+
+ * lib/renameat.c: Include unistd.h before stdio.h, because
+ Solaris 10 declares renameat in unistd.h. Problem encountered
+ when building GNU tar 1.24 on Solaris 10.
+
2010-10-26 Christian Weisgerber <address@hidden> (tiny change)
fdopendir: fix C89 compilation
diff --git a/lib/renameat.c b/lib/renameat.c
index f294765..692fd52 100644
--- a/lib/renameat.c
+++ b/lib/renameat.c
@@ -18,6 +18,12 @@
#include <config.h>
+/* Solaris 10, which predates POSIX-2008, declares its renameat in
+ unistd.h. Include unistd.h before including stdio.h, so that
+ gnulib's stdio.h doesn't #define renameat to rpl_renameat before
+ Solaris 10's unistd.h declares the system renameat. */
+#include <unistd.h>
+
#include <stdio.h>
#if HAVE_RENAMEAT
--
1.7.2
- [PATCH] renameat: port to Solaris 10, which declares renameat in unistd.h,
Paul Eggert <=
- Re: [PATCH] renameat: port to Solaris 10, which declares renameat in unistd.h, Eric Blake, 2010/10/26
- Re: [PATCH] renameat: port to Solaris 10, which declares renameat in unistd.h, Paul Eggert, 2010/10/26
- Re: [PATCH] renameat: port to Solaris 10, which declares renameat in unistd.h, Bruno Haible, 2010/10/26
- Re: [PATCH] renameat: port to Solaris 10, which declares renameat in unistd.h, Eric Blake, 2010/10/26
- Re: [PATCH] renameat: port to Solaris 10, which declares renameat in unistd.h, Bruno Haible, 2010/10/26
- Re: [PATCH] renameat: port to Solaris 10, which declares renameat in unistd.h, Eric Blake, 2010/10/27
- Re: [PATCH] renameat: port to Solaris 10, which declares renameat in unistd.h, Eric Blake, 2010/10/26
- Re: [PATCH] renameat: port to Solaris 10, which declares renameat in unistd.h, Paul Eggert, 2010/10/26
- Re: [PATCH] renameat: port to Solaris 10, which declares renameat in unistd.h, Bruno Haible, 2010/10/26