Nmap Development mailing list archives
Small fix for building on Mac OS X (10.7.2 with Xcode 4.2)
From: "Daniel J. Luke" <dluke () geeklair net>
Date: Tue, 18 Oct 2011 12:01:46 -0400
The clang compiler that ships with Xcode 4.2 doesn't like two of the nbase configure tests.
This simple diff fixes the build (with appropriate autoconf regen):
% diff nbase/configlocal.m4.orig nbase/configlocal.m4
--- nbase/configlocal.m4.orig 2011-10-18 11:55:08.000000000 -0400
+++ nbase/configlocal.m4 2011-10-18 11:54:42.000000000 -0400
@@ -27,7 +27,7 @@
#include <sys/socket.h>
#endif
-void main(void) {
+int main(void) {
struct addrinfo hints, *ai;
int error;
@@ -81,7 +81,7 @@
#include <netinet/in.h>
#endif
-void main(void) {
+int main(void) {
struct sockaddr_in sa;
char hbuf[256];
int error;
--
Daniel J. Luke
+========================================================+
| *---------------- dluke () geeklair net ----------------* |
| *-------------- http://www.geeklair.net -------------* |
+========================================================+
| Opinions expressed are mine and do not necessarily |
| reflect the opinions of my employer. |
+========================================================+
_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://seclists.org/nmap-dev/
Current thread:
- Small fix for building on Mac OS X (10.7.2 with Xcode 4.2) Daniel J. Luke (Oct 18)
- Re: Small fix for building on Mac OS X (10.7.2 with Xcode 4.2) David Fifield (Oct 19)
