X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=m4%2Fgetlogin_r.m4;h=eb6744481d77a63dbcdf7e6cf18036fe40725f21;hb=32dbf2ceb339e1416390b551f65e4f84c033fd27;hp=9cda9a493e16b56c8ad358823cf5f0c2c843af04;hpb=e53e23a012113952499a70115d2ca26b2a33e2bf;p=gnulib.git diff --git a/m4/getlogin_r.m4 b/m4/getlogin_r.m4 index 9cda9a493..eb6744481 100644 --- a/m4/getlogin_r.m4 +++ b/m4/getlogin_r.m4 @@ -1,6 +1,6 @@ -#serial 9 +#serial 11 -# Copyright (C) 2005-2007, 2009-2010 Free Software Foundation, Inc. +# Copyright (C) 2005-2007, 2009-2011 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -50,7 +50,11 @@ changequote([,])dnl #include #include #if !HAVE_DECL_GETLOGIN_R -extern int getlogin_r (char *, size_t); +extern +# ifdef __cplusplus +"C" +# endif +int getlogin_r (char *, size_t); #endif int main (void) @@ -76,10 +80,6 @@ main (void) *) REPLACE_GETLOGIN_R=1 ;; esac fi - if test $HAVE_GETLOGIN_R = 0 || test $REPLACE_GETLOGIN_R = 1; then - AC_LIBOBJ([getlogin_r]) - gl_PREREQ_GETLOGIN_R - fi ]) AC_DEFUN([gl_PREREQ_GETLOGIN_R],