Project

General

Profile

Bug #413 ยป ruby-1.8.6.p286_maindecl.patch

pzb (Peter Bowen), 08/09/2008 04:36 AM

View differences:

ruby-1.8.6-p286/configure.in 2008-08-08 15:21:49.000000000 -0400
/* Test for whether ELF binaries are produced */
#include <fcntl.h>
#include <stdlib.h>
main() {
int main() {
char buffer[4];
int i=open("conftest",O_RDONLY);
if(i==-1)
......
changequote(<<, >>)dnl
<<
#include <stdio.h>
main ()
int main ()
{
char buf[256];
sprintf (buf, "%g", 1e+300);
......
<<
#include <stdio.h>
#include <math.h>
main ()
int main ()
{
char buf[256];
sprintf (buf, "%f", log(exp(1.0)));
ruby-1.8.6-p286/ext/digest/md5/md5.c 2008-08-08 15:32:58.000000000 -0400
* A.5 of RFC 1321, reproduced below.
*/
#include <string.h>
main()
int main()
{
static const char *const test[7*2] = {
"", "d41d8cd98f00b204e9800998ecf8427e",
......
*/
#ifdef COMPUTE_T_VALUES
#include <math.h>
main()
int main()
{
int i;
for (i = 1; i <= 64; ++i) {
ruby-1.8.6-p286/ext/openssl/ossl.c 2008-08-08 15:35:48.000000000 -0400
* Check if all symbols are OK with 'make LDSHARED=gcc all'
*/
int
main(int argc, char *argv[], char *env[])
main(int argc, char *argv[])
{
return 0;
}
ruby-1.8.6-p286/ext/socket/extconf.rb 2008-08-08 15:25:00.000000000 -0400
if checking_for("ipv6") {try_link(<<EOF)}
#include <sys/types.h>
#include <sys/socket.h>
main()
int main()
{
socket(AF_INET6, SOCK_STREAM, 0);
}
......
#define AF_LOCAL AF_UNIX
#endif
main()
int main()
{
int passive, gaierr, inet4 = 0, inet6 = 0;
struct addrinfo hints, *ai, *aitop;
ruby-1.8.6-p286/main.c 2008-08-08 15:32:41.000000000 -0400
#endif
int
main(argc, argv, envp)
main(argc, argv)
int argc;
char **argv, **envp;
char **argv;
{
#ifdef _WIN32
NtInitialize(&argc, &argv);
    (1-1/1)