summaryrefslogtreecommitdiff
path: root/modules/sendto
diff options
context:
space:
mode:
Diffstat (limited to 'modules/sendto')
-rw-r--r--modules/sendto7
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/sendto b/modules/sendto
index b78ed8c760..a5d4d5702c 100644
--- a/modules/sendto
+++ b/modules/sendto
@@ -13,12 +13,13 @@ msvc-nothrow [test "$ac_cv_header_winsock2_h" = yes]
configure.ac:
AC_REQUIRE([gl_SYS_SOCKET_H])
-if test "$ac_cv_header_winsock2_h" = yes; then
- AC_LIBOBJ([sendto])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_SENDTO], [test "$ac_cv_header_winsock2_h" = yes])
gl_SYS_SOCKET_MODULE_INDICATOR([sendto])
Makefile.am:
+if GL_COND_OBJ_SENDTO
+lib_SOURCES += sendto.c
+endif
Include:
<sys/socket.h>