summaryrefslogtreecommitdiff
path: root/games-misc/bsd-games/files/bsd-games-2.17-headers.patch
diff options
context:
space:
mode:
Diffstat (limited to 'games-misc/bsd-games/files/bsd-games-2.17-headers.patch')
-rw-r--r--games-misc/bsd-games/files/bsd-games-2.17-headers.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/games-misc/bsd-games/files/bsd-games-2.17-headers.patch b/games-misc/bsd-games/files/bsd-games-2.17-headers.patch
new file mode 100644
index 000000000000..953a5d35765a
--- /dev/null
+++ b/games-misc/bsd-games/files/bsd-games-2.17-headers.patch
@@ -0,0 +1,16 @@
+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