Hi
One more issue with building openobex on NetBSD is that getaddrinfo() and
struct addrinfo are shielded behind XOPEN_SOURCE >= 520 restrictions, and
in obex_tcp.c the
#define _XOPEN_SOURCE 500
means that they are excluded.. I can't find a citation for the 520 value,
but the NetBSD guys are generally pretty strict about standards
conformance and the following webpages
The Single UNIX ® Specification, Version 2 (_XOPEN_SOURCE=500)
http://pubs.opengroup.org/onlinepubs/007908799/xsh/compilation.html
The Open Group Base Specifications Issue 6 (_XOPEN_SOURCE=600)
http://pubs.opengroup.org/onlinepubs/000095399/functions/xsh_chap02_02.html
seem to imply that version X/Open 5.0 did not define them, where 6.0
does.. Would bumping it to 600 as below cause any problems?
iain
diff --git a/apps/obex_tcp.c b/apps/obex_tcp.c
index 17204fa..831952e 100644
--- a/apps/obex_tcp.c
+++ b/apps/obex_tcp.c
@@ -22,7 +22,7 @@
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
-#define _XOPEN_SOURCE 500
+#define _XOPEN_SOURCE 600
#ifdef _WIN32
#include <winsock2.h>
------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Openobex-users mailing list
Openobex-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/openobex-users