blob: 953a5d35765a0dfbff949859adc48ab09126aea7 [file] [log] [blame]
http://bugs.gentoo.org/128348
--- include/stdio.h
+++ include/stdio.h
@@ -35,5 +35,11 @@
#include_next <stdio.h>
#ifndef HAVE_fgetln
+#ifdef __cplusplus
+extern "C" {
+#endif
extern char *fgetln(FILE *stream, size_t *len);
+#ifdef __cplusplus
+}
+#endif
#endif