summaryrefslogtreecommitdiffstats
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/digest/md5/md5.c2
-rw-r--r--ext/openssl/ossl.c2
-rw-r--r--ext/socket/extconf.rb2
3 files changed, 5 insertions, 1 deletions
diff --git a/ext/digest/md5/md5.c b/ext/digest/md5/md5.c
index 993bc47a0..518f8239e 100644
--- a/ext/digest/md5/md5.c
+++ b/ext/digest/md5/md5.c
@@ -60,6 +60,7 @@
* A.5 of RFC 1321, reproduced below.
*/
#include <string.h>
+int
main()
{
static const char *const test[7*2] = {
@@ -100,6 +101,7 @@ main()
*/
#ifdef COMPUTE_T_VALUES
#include <math.h>
+int
main()
{
int i;
diff --git a/ext/openssl/ossl.c b/ext/openssl/ossl.c
index b7a523626..9df7c59d2 100644
--- a/ext/openssl/ossl.c
+++ b/ext/openssl/ossl.c
@@ -488,7 +488,7 @@ Init_openssl()
* 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;
}
diff --git a/ext/socket/extconf.rb b/ext/socket/extconf.rb
index 5479d4d00..35ed282e1 100644
--- a/ext/socket/extconf.rb
+++ b/ext/socket/extconf.rb
@@ -38,6 +38,7 @@ if enable_config("ipv6", default_ipv6)
if checking_for("ipv6") {try_link(<<EOF)}
#include <sys/types.h>
#include <sys/socket.h>
+int
main()
{
socket(AF_INET6, SOCK_STREAM, 0);
@@ -123,6 +124,7 @@ getaddr_info_ok = enable_config("wide-getaddrinfo") do
#define AF_LOCAL AF_UNIX
#endif
+int
main()
{
int passive, gaierr, inet4 = 0, inet6 = 0;