* tests/test-net_if-c++.cc: New file.
* modules/net_if-c++-tests: New file.
* modules/net_if-tests (Depends-on): Add net_if-c++-tests.
* doc/posix-headers/net_if.texi: Fix documentation.
+2022-09-03 Bruno Haible <bruno@clisp.org>
+
+ net_if: Add C++ tests.
+ * tests/test-net_if-c++.cc: New file.
+ * modules/net_if-c++-tests: New file.
+ * modules/net_if-tests (Depends-on): Add net_if-c++-tests.
+ * doc/posix-headers/net_if.texi: Fix documentation.
+
2022-09-03 Bruno Haible <bruno@clisp.org>
termcap: Fix link error on AIX 7.
Portability problems fixed by Gnulib:
@itemize
@item
+This header file is missing on some platforms:
+mingw, MSVC 14.
+@item
This header file is not self-contained on some platforms (needing
<sys/socket.h> to be included first):
Mac OS X 10.5, FreeBSD 8.2, OpenBSD 5.2.
Portability problems not fixed by Gnulib:
@itemize
-@item
-This header file is missing on some platforms:
-mingw, MSVC 14.
@end itemize
--- /dev/null
+Files:
+tests/test-net_if-c++.cc
+
+Status:
+c++-test
+
+Depends-on:
+ansi-c++-opt
+net_if-tests
+
+configure.ac:
+
+Makefile.am:
+if ANSICXX
+TESTS += test-net_if-c++
+check_PROGRAMS += test-net_if-c++
+test_net_if_c___SOURCES = test-net_if-c++.cc
+test_net_if_c___LDADD = $(LDADD) @NET_IF_LIB@
+endif
tests/signature.h
Depends-on:
+net_if-c++-tests
configure.ac:
NET_IF_LIB=
--- /dev/null
+/* Test of <net/if.h> substitute in C++ mode.
+ Copyright (C) 2022 Free Software Foundation, Inc.
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>. */
+
+/* Written by Bruno Haible <bruno@clisp.org>, 2022. */
+
+#define GNULIB_NAMESPACE gnulib
+#include <config.h>
+
+#include <net/if.h>
+
+
+int
+main ()
+{
+}