* lib/unistd.in.h (getdomainname): Enable the C++ alias warning only on
glibc systems.
+2022-09-02 Bruno Haible <bruno@clisp.org>
+
+ getdomainname: Fix compilation error in C++ mode on Solaris 11.
+ * lib/unistd.in.h (getdomainname): Enable the C++ alias warning only on
+ glibc systems.
+
2022-08-22 Paul Eggert <eggert@cs.ucla.edu>
tempname: don't lose entropy in seed
# endif
_GL_CXXALIAS_SYS (getdomainname, int, (char *name, size_t len));
# endif
+# if __GLIBC__ >= 2
_GL_CXXALIASWARN (getdomainname);
+# endif
#elif defined GNULIB_POSIXCHECK
# undef getdomainname
# if HAVE_RAW_DECL_GETDOMAINNAME