mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
merges r27764 from trunk into ruby_1_9_2.
-- * ext/sdbm/_sdbm.c: include unistd.h before sdbm.h for off_t. fix compilation problem on FreeBSD 6.4. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@27836 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
49f9df123e
commit
5da19dd2c0
2 changed files with 10 additions and 4 deletions
|
|
@ -1,3 +1,8 @@
|
|||
Thu May 13 07:37:49 2010 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* ext/sdbm/_sdbm.c: include unistd.h before sdbm.h for off_t.
|
||||
fix compilation problem on FreeBSD 6.4.
|
||||
|
||||
Wed May 12 11:39:10 2010 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* ext/socket/extconf.rb: test all IPPROTO_* constants for recent Win32
|
||||
|
|
|
|||
|
|
@ -13,6 +13,11 @@
|
|||
|
||||
#include "ruby/config.h"
|
||||
#include "ruby/defines.h"
|
||||
|
||||
#ifdef HAVE_UNISTD_H
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#include "sdbm.h"
|
||||
|
||||
/*
|
||||
|
|
@ -23,10 +28,6 @@
|
|||
|
||||
#define BYTESIZ 8
|
||||
|
||||
#ifdef HAVE_UNISTD_H
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#ifdef BSD42
|
||||
#define SEEK_SET L_SET
|
||||
#define memset(s,c,n) bzero(s, n) /* only when c is zero */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue