diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-07-26 15:03:16 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-07-26 15:03:16 +0000 |
commit | f0b77b0cdefb95e843e4bc40ed3079fa6167c808 (patch) | |
tree | f43bcbbbea28f0be235adcb8fbfd15e280c30a06 /ext | |
parent | 472efdfeb41af1b2b5376af3f5a5e870f02b7374 (diff) |
* ext/tk/lib/tk.rb (TkCore::chooseDirectory): back up wrongly
removed method.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4175 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r-- | ext/digest/sha2/sha2.c | 2 | ||||
-rw-r--r-- | ext/readline/readline.c | 7 |
2 files changed, 5 insertions, 4 deletions
diff --git a/ext/digest/sha2/sha2.c b/ext/digest/sha2/sha2.c index 31b5ff1690..24a57ded0d 100644 --- a/ext/digest/sha2/sha2.c +++ b/ext/digest/sha2/sha2.c @@ -67,7 +67,7 @@ typedef uint8_t sha2_byte; /* Exactly 1 byte */ typedef uint32_t sha2_word32; /* Exactly 4 bytes */ typedef uint64_t sha2_word64; /* Exactly 8 bytes */ -#if defined(__GNUC__) +#if defined(__GNUC__) || defined(_HPUX_SOURCE) #define ULL(number) number##ULL #else #define ULL(number) (uint64_t)(number) diff --git a/ext/readline/readline.c b/ext/readline/readline.c index b72da75e7f..cac0b1d11c 100644 --- a/ext/readline/readline.c +++ b/ext/readline/readline.c @@ -3,15 +3,16 @@ #include <errno.h> #include <stdio.h> -#ifdef HAVE_UNISTD_H -#include <unistd.h> -#endif #include <readline/readline.h> #include <readline/history.h> #include "ruby.h" #include "rubysig.h" +#ifdef HAVE_UNISTD_H +#include <unistd.h> +#endif + static VALUE mReadline; #define TOLOWER(c) (isupper(c) ? tolower(c) : c) |