X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=m4%2Fgetlogin_r.m4;h=d9fa1ca78fe84aa0b97d6c7ba107116907d18043;hb=7ef6c64e210ac0979d7e8ac69bc5b5208c2405ab;hp=89a60d5e2b08a7fba4b565b532814d0993f9dde0;hpb=d60f3b0c6b0f93a601acd1cfd3923f94ca05abb0;p=gnulib.git diff --git a/m4/getlogin_r.m4 b/m4/getlogin_r.m4 index 89a60d5e2..d9fa1ca78 100644 --- a/m4/getlogin_r.m4 +++ b/m4/getlogin_r.m4 @@ -1,6 +1,6 @@ -#serial 9 +#serial 11 -# Copyright (C) 2005-2007, 2009-2011 Free Software Foundation, Inc. +# Copyright (C) 2005-2007, 2009-2014 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],