Properly quote AC_CHECK_DECLS' 4th argument.
[gnulib.git] / m4 / getdomainname.m4
index 542e4ce..07b60a6 100644 (file)
@@ -1,4 +1,4 @@
-# getdomainname.m4 serial 8
+# getdomainname.m4 serial 9
 dnl Copyright (C) 2002-2003, 2008-2011 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -45,15 +45,15 @@ AC_DEFUN([gl_FUNC_GETDOMAINNAME],
   dnl - It's  int getdomainname(char *, int)  on MacOS X, FreeBSD, AIX, IRIX,
   dnl   OSF/1.
   AC_CHECK_DECLS([getdomainname], , ,
-    [#include <sys/types.h>
-     #ifdef HAVE_SYS_SOCKET_H
-     #include <sys/socket.h>
-     #endif
-     #ifdef HAVE_NETDB_H
-     #include <netdb.h>
-     #endif
-     #include <unistd.h>
-    ])
+    [[#include <sys/types.h>
+      #ifdef HAVE_SYS_SOCKET_H
+      #include <sys/socket.h>
+      #endif
+      #ifdef HAVE_NETDB_H
+      #include <netdb.h>
+      #endif
+      #include <unistd.h>
+    ]])
   AC_CACHE_CHECK([for getdomainname's second argument type],
     [gl_cv_decl_getdomainname_argtype2],
     [if test $ac_cv_have_decl_getdomainname; then