Last change
on this file since 134 was 2, checked in by Dmitry A. Kuminov, 16 years ago |
Initially imported qt-all-opensource-src-4.5.1 from Trolltech.
|
File size:
324 bytes
|
Line | |
---|
1 | /* Sample program for configure to test for if_nametoindex support
|
---|
2 | on target platforms. */
|
---|
3 |
|
---|
4 | #if defined(__hpux)
|
---|
5 | #define _HPUX_SOURCE
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | #include <sys/types.h>
|
---|
9 | #include <sys/socket.h>
|
---|
10 | #include <net/if.h>
|
---|
11 | #include <ifaddrs.h>
|
---|
12 |
|
---|
13 | int main()
|
---|
14 | {
|
---|
15 | ifaddrs *list;
|
---|
16 | getifaddrs(&list);
|
---|
17 | freeifaddrs(list);
|
---|
18 | return 0;
|
---|
19 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.