Mercurial > hg > octave-lojdl > gnulib-hg
changeset 1498:ad218135edca
Declare locals: before, after. From Andries Brouwer.
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Mon, 21 Sep 1998 12:05:49 +0000 |
parents | df991a2327b5 |
children | ed7ad3597c87 |
files | m4/chown.m4 |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/m4/chown.m4 +++ b/m4/chown.m4 @@ -1,4 +1,4 @@ -#serial 2 +#serial 3 dnl From Jim Meyering. dnl Determine whether chown accepts arguments of -1 for uid and gid. @@ -17,7 +17,7 @@ AC_CACHE_CHECK([for working chown], jm_cv_func_working_chown, [AC_TRY_RUN([ # include <sys/types.h> -# include <stat.h> +# include <sys/stat.h> # include <fcntl.h> # ifdef HAVE_UNISTD_H # include <unistd.h> @@ -27,6 +27,8 @@ main () { char *f = "conftestchown"; + struct stat before, after; + if (creat (f, 0600) < 0) exit (1); if (stat (f, &before) < 0)