summaryrefslogtreecommitdiffstats
path: root/config.tests/unix/ipv6
diff options
context:
space:
mode:
Diffstat (limited to 'config.tests/unix/ipv6')
-rw-r--r--config.tests/unix/ipv6/ipv6test.cpp20
-rw-r--r--config.tests/unix/ipv6/ipv6test.pro5
2 files changed, 25 insertions, 0 deletions
diff --git a/config.tests/unix/ipv6/ipv6test.cpp b/config.tests/unix/ipv6/ipv6test.cpp
new file mode 100644
index 000000000..008f7efe2
--- /dev/null
+++ b/config.tests/unix/ipv6/ipv6test.cpp
@@ -0,0 +1,20 @@
+/* Sample program for configure to test IPv6 support on target
+platforms. We check for the retquired IPv6 data structures. */
+
+#if defined(__hpux)
+#define _HPUX_SOURCE
+#endif
+
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <netinet/in.h>
+
+int main()
+{
+ sockaddr_in6 tmp;
+ sockaddr_storage tmp2;
+ (void)tmp;
+ (void)tmp2;
+
+ return 0;
+}
diff --git a/config.tests/unix/ipv6/ipv6test.pro b/config.tests/unix/ipv6/ipv6test.pro
new file mode 100644
index 000000000..ec4e8757f
--- /dev/null
+++ b/config.tests/unix/ipv6/ipv6test.pro
@@ -0,0 +1,5 @@
+TARGET=ipv6test
+CONFIG += console
+CONFIG-=qt opengl x11sm dylib
+TEMPLATE=app
+SOURCES=ipv6test.cpp