[Assorted-commits] SF.net SVN: assorted: [659] sandbox/trunk/src/c/stxbuilderr.c
Brought to you by:
yangzhang
From: <yan...@us...> - 2008-04-09 04:39:42
|
Revision: 659 http://assorted.svn.sourceforge.net/assorted/?rev=659&view=rev Author: yangzhang Date: 2008-04-08 21:39:47 -0700 (Tue, 08 Apr 2008) Log Message: ----------- Added Paths: ----------- sandbox/trunk/src/c/stxbuilderr.c Added: sandbox/trunk/src/c/stxbuilderr.c =================================================================== --- sandbox/trunk/src/c/stxbuilderr.c (rev 0) +++ sandbox/trunk/src/c/stxbuilderr.c 2008-04-09 04:39:47 UTC (rev 659) @@ -0,0 +1,13 @@ +// This was originally written to report a build error with stx. Turns out I +// just had to specify -lresolv in addition to -lstx -lst. + +#include <st.h> +#include <stx.h> + +int +main() +{ + struct in_addr addr; + stx_dns_getaddr("google.com", &addr, 0); + return 0; +} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |