summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2019-01-15 15:21:03 +0200
committerSergey Poznyakoff <gray@gnu.org>2019-01-15 15:21:03 +0200
commitbd1b0fc97c95686175057a203c7a1cf7b79cb19b (patch)
treee33813531a6b804c5241088aa02d3bb9a82e8553
parenta7289daf5c7c8f197dac0ce6b0ec54752cb78da0 (diff)
downloadtar-bd1b0fc97c95686175057a203c7a1cf7b79cb19b.tar.gz
Fix build on AIX
* src/unlink.c (flush_deferred_unlinks): Avoid possible duplicate case (if ENOTEMPTY==EEXIST)
-rw-r--r--src/unlink.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/unlink.c b/src/unlink.c
index 8f3a8a43..5a72f701 100644
--- a/src/unlink.c
+++ b/src/unlink.c
@@ -127,7 +127,9 @@ flush_deferred_unlinks (bool force)
case EEXIST:
/* OpenSolaris >=10 sets EEXIST instead of ENOTEMPTY
if trying to remove a non-empty directory */
+#if defined ENOTEMPTY && ENOTEMPTY != EEXIST
case ENOTEMPTY:
+#endif
/* Keep the record in list, in the hope we'll
be able to remove it later */
prev = p;