diff options
| author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-01-13 20:41:02 +0000 |
|---|---|---|
| committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-01-13 20:41:02 +0000 |
| commit | 480f79c9d4cffe085f30c93de94ec9936f4c4c84 (patch) | |
| tree | 8059ab5db826dcc0dae0e0a7239e81798777bd15 | |
| parent | fb268fe496060c4543e69bb8d466495932f31787 (diff) | |
| download | ruby-480f79c9d4cffe085f30c93de94ec9936f4c4c84.tar.gz ruby-480f79c9d4cffe085f30c93de94ec9936f4c4c84.tar.xz ruby-480f79c9d4cffe085f30c93de94ec9936f4c4c84.zip | |
* io.c (READ_DATA_PENDING, READ_DATA_PENDING_COUNT): defined
for DragonFly BSD 1.4.0.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@9833 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | io.c | 4 |
2 files changed, 9 insertions, 0 deletions
@@ -1,3 +1,8 @@ +Sat Jan 14 05:37:06 2006 Tanaka Akira <akr@m17n.org> + + * io.c (READ_DATA_PENDING, READ_DATA_PENDING_COUNT): defined + for DragonFly BSD 1.4.0. + Sat Jan 14 03:43:24 2006 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp> * file.c (rb_file_s_chmod): avoid warning where sizeof(int) != @@ -169,6 +169,10 @@ typedef struct _FILE64 { # define READ_DATA_PENDING_COUNT(fp) ((unsigned int)(*(fp))->_cnt) # define READ_DATA_PENDING(fp) (((unsigned int)(*(fp))->_cnt) > 0) # define READ_DATA_BUFFERED(fp) 0 +#elif defined(__DragonFly__) +/* FILE is an incomplete struct type since DragonFly BSD 1.4.0 */ +# define READ_DATA_PENDING(fp) (((struct __FILE_public *)(fp))->_r > 0) +# define READ_DATA_PENDING_COUNT(fp) (((struct __FILE_public *)(fp))->_r) #else /* requires systems own version of the ReadDataPending() */ extern int ReadDataPending(); |
