summaryrefslogtreecommitdiff
path: root/m4/unlink-busy.m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4/unlink-busy.m4')
-rw-r--r--m4/unlink-busy.m49
1 files changed, 7 insertions, 2 deletions
diff --git a/m4/unlink-busy.m4 b/m4/unlink-busy.m4
index 15fdc7c8d3..52810ae10c 100644
--- a/m4/unlink-busy.m4
+++ b/m4/unlink-busy.m4
@@ -1,4 +1,4 @@
-#serial 11
+#serial 12
dnl From J. David Anglin.
@@ -20,7 +20,12 @@ AC_DEFUN([gl_FUNC_UNLINK_BUSY_TEXT],
int
main (int argc, char **argv)
{
- return !argc || unlink (argv[0]) != 0;
+ int result = 0;
+ if (argc == 0)
+ result |= 1;
+ else if (unlink (argv[0]) != 0)
+ result |= 2;
+ return result;
}]])],
gl_cv_func_unlink_busy_text=yes,
gl_cv_func_unlink_busy_text=no,