summaryrefslogtreecommitdiff
path: root/net/nmap/patches/patch-nbase_configure
blob: 97695d0e4ffbbab489749e8b7791d9b560832a05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
$NetBSD: patch-nbase_configure,v 1.1 2011/07/08 09:24:48 adam Exp $

Fix configuring with Clang.

--- nbase/configure.orig	2011-01-21 21:00:04.000000000 +0000
+++ nbase/configure
@@ -4509,7 +4509,7 @@ else
 #include <sys/socket.h>
 #endif
 
-void main(void) {
+int main(void) {
     struct addrinfo hints, *ai;
     int error;
 
@@ -4641,7 +4641,7 @@ else
 #include <netinet/in.h>
 #endif
 
-void main(void) {
+int main(void) {
     struct sockaddr_in sa;
     char hbuf[256];
     int error;