X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=m4%2Fioctl.m4;h=1463af42274201d68ef93ab227a0b159df7ab8b3;hb=cdceb2fe48e39f4fff25f6f4cb34bbab88c2856f;hp=e799600f95381e7b6c847ce5f2ba24b38ba9006f;hpb=da0c838e760661390dd503195fb5b2c7e8a5ddd7;p=gnulib.git diff --git a/m4/ioctl.m4 b/m4/ioctl.m4 index e799600f9..1463af422 100644 --- a/m4/ioctl.m4 +++ b/m4/ioctl.m4 @@ -1,5 +1,5 @@ -# ioctl.m4 serial 3 -dnl Copyright (C) 2008-2011 Free Software Foundation, Inc. +# ioctl.m4 serial 4 +dnl Copyright (C) 2008-2013 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -24,7 +24,12 @@ AC_DEFUN([gl_FUNC_IOCTL], [AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( [[#include ]], - [[extern int ioctl (int, int, ...);]]) + [[extern + #ifdef __cplusplus + "C" + #endif + int ioctl (int, int, ...); + ]]) ], [gl_cv_func_ioctl_posix_signature=yes], [gl_cv_func_ioctl_posix_signature=no])