diff options
author | ohauer <ohauer@FreeBSD.org> | 2011-08-01 05:49:46 +0800 |
---|---|---|
committer | ohauer <ohauer@FreeBSD.org> | 2011-08-01 05:49:46 +0800 |
commit | 8a6b7135949503c7a2d07d6bf55e2a3bf414ef66 (patch) | |
tree | 435755aadf5fc0000f6feffefe7485397a48691f /security | |
parent | 04c6208dc3545a7015ea2967ba06addc6c3ac05e (diff) | |
download | freebsd-ports-gnome-8a6b7135949503c7a2d07d6bf55e2a3bf414ef66.tar.gz freebsd-ports-gnome-8a6b7135949503c7a2d07d6bf55e2a3bf414ef66.tar.zst freebsd-ports-gnome-8a6b7135949503c7a2d07d6bf55e2a3bf414ef66.zip |
- fix build with clang
Thanks for the patch goes to Dimitry Andric <dim@FreeBSD.org>
Diffstat (limited to 'security')
-rw-r--r-- | security/nmap/files/patch-nbase__configure | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/security/nmap/files/patch-nbase__configure b/security/nmap/files/patch-nbase__configure new file mode 100644 index 000000000000..a6a7d5e4f783 --- /dev/null +++ b/security/nmap/files/patch-nbase__configure @@ -0,0 +1,22 @@ +This patch allows nmap to build with clang +=============================================================== +--- ./nbase/configure.orig 2011-06-29 00:19:31.000000000 +0200 ++++ ./nbase/configure 2011-07-31 23:17:57.000000000 +0200 +@@ -4515,7 +4515,7 @@ + #include <sys/socket.h> + #endif + +-void main(void) { ++int main(void) { + struct addrinfo hints, *ai; + int error; + +@@ -4647,7 +4647,7 @@ + #include <netinet/in.h> + #endif + +-void main(void) { ++int main(void) { + struct sockaddr_in sa; + char hbuf[256]; + int error; |