path: root/ruby.h
diff options
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-05-14 14:57:53 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-05-14 14:57:53 +0000
commit7862a89c564005b4f2c0eed1308ebd193dcbcd14 (patch)
tree78b0af99dcf7b739c0afaa59f53c338fdec6cdd9 /ruby.h
parentafdbd6fc5264ad548370ade033daa8fa318ca8ab (diff)
* Check for the availability of pid_t, gid_t and uid_t and
remove AC_TYPE_UID_T. fixed: [ruby-core:04745] * defines.h: Remove pid_t typedef. * ruby.h: Define rb_pid_t, rb_gid_t and rb_uid_t in accordance with the available system types. * process.c: Change instances of pid_t and gid_t to their rb_* counterparts. * ext/pty/pty.c: Change pid_t to rb_pid_t. * vms/config.h: Define HAVE_{P,G,U}ID_T to 1. * win32/Makefile.sub: Remove #define for {g,u}id_t. * win32/win32.c: Change pid_t to rb_pid_t. * wince/Makefile.sub: Remove #define for {g,u}id_t. * wince/sys/types.h: Remove definitions of {p,g,u}id_t. git-svn-id: svn+ssh:// b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ruby.h')
1 files changed, 18 insertions, 0 deletions
diff --git a/ruby.h b/ruby.h
index db3280b..c5dcbff 100644
--- a/ruby.h
+++ b/ruby.h
@@ -76,6 +76,24 @@ extern "C" {
typedef unsigned long VALUE;
typedef unsigned long ID;
+#ifndef HAVE_PID_T
+ typedef int rb_pid_t;
+ typedef pid_t rb_pid_t;
+#ifndef HAVE_GID_T
+ typedef int rb_gid_t;
+ typedef gid_t rb_gid_t;
+#ifndef HAVE_UID_T
+ typedef int rb_uid_t;
+ typedef uid_t rb_uid_t;
#ifdef __STDC__
# include <limits.h>