summaryrefslogtreecommitdiff
blob: 418d411660e00797418564da519831888be11675 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
http://bugs.gentoo.org/128348

--- a/include/stdio.h
+++ b/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