summaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-05-15 09:56:53 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-05-15 09:56:53 +0000
commitee04c39fe8eedace7f896dfe2f83b0d198e2cb3d (patch)
tree7a8d53e9e328da5a31b4866b159b180adfe9f975 /configure.in
parent671dc89d727365fa5926ffb0de31a5b51356a616 (diff)
downloadruby-ee04c39fe8eedace7f896dfe2f83b0d198e2cb3d.tar.gz
ruby-ee04c39fe8eedace7f896dfe2f83b0d198e2cb3d.tar.xz
ruby-ee04c39fe8eedace7f896dfe2f83b0d198e2cb3d.zip
* configure.in, ruby.h: define rb_[pgu]id_t macros instead of typedefs
to get rid of types which might not be defined yet. [ruby-dev:26165] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8461 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in7
1 files changed, 5 insertions, 2 deletions
diff --git a/configure.in b/configure.in
index 9202f48d4..4c51c0dfc 100644
--- a/configure.in
+++ b/configure.in
@@ -1,7 +1,7 @@
dnl Process this file with autoconf to produce a configure script.
AC_INIT()
-AC_PREREQ(2.50)
+AC_PREREQ(2.58)
AC_DEFUN(RUBY_MINGW32,
[case "$host_os" in
@@ -226,7 +226,10 @@ AC_CHECK_SIZEOF(float, 4)
AC_CHECK_SIZEOF(double, 8)
AC_CHECK_SIZEOF(time_t, 0)
-AC_CHECK_TYPES([pid_t, gid_t, uid_t])
+for id in pid_t gid_t uid_t; do
+ AC_CHECK_TYPE($id, [typ=$id], [typ=int])
+ AC_DEFINE_UNQUOTED(rb_$id, $typ)
+done
AC_CACHE_CHECK(for prototypes, rb_cv_have_prototypes,
[AC_TRY_COMPILE([int foo(int x) { return 0; }], [return foo(10);],