bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

sys_socket: fix declarations test


From: Bruno Haible
Subject: sys_socket: fix declarations test
Date: Sat, 27 Nov 2010 15:46:18 +0100
User-agent: KMail/1.9.9

On Solaris 11 2010-11, I'm seeing these messages from 'configure':

checking whether socket is declared without a macro... no
checking whether connect is declared without a macro... no
checking whether accept is declared without a macro... no
checking whether bind is declared without a macro... no
checking whether getpeername is declared without a macro... no
checking whether getsockname is declared without a macro... no
checking whether getsockopt is declared without a macro... no
checking whether listen is declared without a macro... no
checking whether recv is declared without a macro... no
checking whether send is declared without a macro... no
checking whether recvfrom is declared without a macro... no
checking whether sendto is declared without a macro... no
checking whether setsockopt is declared without a macro... no
checking whether shutdown is declared without a macro... no

The reason is a mistake in m4/sys_socket_h.m4. This should fix it.


2010-11-27  Bruno Haible  <address@hidden>

        sys_socket: Fix test whether the functions are declared.
        * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
        not <sys/select.h>.

--- m4/sys_socket_h.m4.orig     Sat Nov 27 15:42:30 2010
+++ m4/sys_socket_h.m4  Sat Nov 27 15:40:59 2010
@@ -1,4 +1,4 @@
-# sys_socket_h.m4 serial 18
+# sys_socket_h.m4 serial 19
 dnl Copyright (C) 2005-2010 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -64,10 +64,7 @@
   gl_WARN_ON_USE_PREPARE([[
 /* Some systems require prerequisite headers.  */
 #include <sys/types.h>
-#if !(defined __GLIBC__ && !defined __UCLIBC__) && HAVE_SYS_TIME_H
-# include <sys/time.h>
-#endif
-#include <sys/select.h>
+#include <sys/socket.h>
     ]], [socket connect accept bind getpeername getsockname getsockopt
     listen recv send recvfrom sendto setsockopt shutdown accept4])
 ])



reply via email to

[Prev in Thread] Current Thread [Next in Thread]