|
Last change
on this file since 88 was 2, checked in by Dmitry A. Kuminov, 16 years ago |
|
Initially imported qt-all-opensource-src-4.5.1 from Trolltech.
|
|
File size:
356 bytes
|
| Line | |
|---|
| 1 | /* Sample program for configure to test for getaddrinfo on the unix
|
|---|
| 2 | platform. we check for all structures and functions required. */
|
|---|
| 3 |
|
|---|
| 4 | #include <sys/types.h>
|
|---|
| 5 | #include <sys/socket.h>
|
|---|
| 6 | #include <netdb.h>
|
|---|
| 7 |
|
|---|
| 8 | int main()
|
|---|
| 9 | {
|
|---|
| 10 | addrinfo *res = 0;
|
|---|
| 11 | if (getaddrinfo("foo", 0, 0, &res) == 0)
|
|---|
| 12 | freeaddrinfo(res);
|
|---|
| 13 | gai_strerror(0);
|
|---|
| 14 |
|
|---|
| 15 | return 0;
|
|---|
| 16 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.