* modules/getsockopt (configure.ac): Invoke gl_MODULE_INDICATOR.
* lib/sys_socket.in.h (getsockopt): Don't define to
getsockopt_used_without_requesting_gnulib_module_getsockopt if the
gnulib module 'getsockopt' is in use under the same configure.ac.
2024-07-24 Bruno Haible <bruno@clisp.org>
+ Avoid false getsockopt_used_without_requesting_gnulib_module_getsockopt.
+ * modules/getsockopt (configure.ac): Invoke gl_MODULE_INDICATOR.
+ * lib/sys_socket.in.h (getsockopt): Don't define to
+ getsockopt_used_without_requesting_gnulib_module_getsockopt if the
+ gnulib module 'getsockopt' is in use under the same configure.ac.
+
Avoid false getsockname_used_without_requesting_gnulib_module_getsockname.
* modules/getsockname (configure.ac): Invoke gl_MODULE_INDICATOR.
* lib/sys_socket.in.h (getsockname): Don't define to
# endif
_GL_CXXALIASWARN (getsockopt);
#elif @HAVE_WINSOCK2_H@
-# undef getsockopt
-# define getsockopt getsockopt_used_without_requesting_gnulib_module_getsockopt
+# if !GNULIB_GETSOCKOPT
+# undef getsockopt
+# define getsockopt getsockopt_used_without_requesting_gnulib_module_getsockopt
+# endif
#elif defined GNULIB_POSIXCHECK
# undef getsockopt
# if HAVE_RAW_DECL_GETSOCKOPT
gl_CONDITIONAL([GL_COND_OBJ_GETSOCKOPT],
[test "$ac_cv_header_winsock2_h" = yes])
gl_SYS_SOCKET_MODULE_INDICATOR([getsockopt])
+gl_MODULE_INDICATOR([getsockopt])
Makefile.am:
if GL_COND_OBJ_GETSOCKOPT