strtoumax: fix typo in previous commit.
[gnulib.git] / m4 / getlogin_r.m4
index ad15c98..78255ca 100644 (file)
@@ -1,6 +1,6 @@
-#serial 10
+#serial 11
 
-# Copyright (C) 2005-2007, 2009-2011 Free Software Foundation, Inc.
+# Copyright (C) 2005-2007, 2009-2013 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 <stddef.h>
 #include <unistd.h>
 #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)