summaryrefslogtreecommitdiff
path: root/ext/mysql/libmysql/my_net.h
diff options
context:
space:
mode:
Diffstat (limited to 'ext/mysql/libmysql/my_net.h')
-rw-r--r--ext/mysql/libmysql/my_net.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/ext/mysql/libmysql/my_net.h b/ext/mysql/libmysql/my_net.h
index 143ddd9d65..4633f3dfbd 100644
--- a/ext/mysql/libmysql/my_net.h
+++ b/ext/mysql/libmysql/my_net.h
@@ -4,6 +4,10 @@ This file is public domain and comes with NO WARRANTY of any kind */
/* thread safe version of some common functions */
/* for thread safe my_inet_ntoa */
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
#if !defined(MSDOS) && !defined(__WIN__) && !defined(__BEOS__)
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
@@ -17,3 +21,7 @@ This file is public domain and comes with NO WARRANTY of any kind */
#endif /* !defined(MSDOS) && !defined(__WIN__) */
void my_inet_ntoa(struct in_addr in, char *buf);
+
+#ifdef __cplusplus
+}
+#endif