+2007-03-22 Bruno Haible <bruno@clisp.org>
+
+ * modules/sys_socket-tests (configure.ac): Check for shutdown function.
+ * tests/test-sys_socket.c (a): Test only if shutdown() exists.
+ (main): Update.
+ Fixes a compilation error on BeOS.
+
2007-03-22 Bruno Haible <bruno@clisp.org>
* modules/frexpl-tests: New file.
#include <errno.h>
+#if HAVE_SHUTDOWN
/* Check some integer constant expressions. */
int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR };
+#endif
int
main ()
{
/* Check some errno values. */
- switch (a[0])
+ switch (0)
{
case ENOTSOCK:
case EADDRINUSE: