diff options
author | Jim Meyering <jim@meyering.net> | 1998-05-09 17:00:38 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1998-05-09 17:00:38 +0000 |
commit | 51c06c49cfe1e6784ef8887041a2787c04180e8a (patch) | |
tree | e00ec8f8b44f5b4b1c9a13af0238ecc08253a014 | |
parent | bbf4d373730de4b2e572733c922a1bd23f0212ef (diff) | |
download | coreutils-51c06c49cfe1e6784ef8887041a2787c04180e8a.tar.xz |
.
-rw-r--r-- | m4/ssize_t.m4 | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/m4/ssize_t.m4 b/m4/ssize_t.m4 new file mode 100644 index 000000000..7f2e6d938 --- /dev/null +++ b/m4/ssize_t.m4 @@ -0,0 +1,19 @@ +#serial 1 + +dnl From Jim Meyering + +# If ssize_t is not defined in sys/types.h, define it to `int'. + +AC_DEFUN(jm_TYPE_SSIZE_T, + [AC_CACHE_CHECK(for ssize_t in sys/types.h, jm_ac_cv_type_ssize_t, + [ + AC_EGREP_HEADER(ssize_t, sys/types.h, + jm_ac_cv_type_ssize_t=yes, + jm_ac_cv_type_ssize_t=no) + if test $jm_ac_cv_type_ssize_t = no; then + AC_DEFINE(ssize_t, int) + fi + ] + ) + ] +) |