[prev in list] [next in list] [prev in thread] [next in thread]
List: haiku-commits
Subject: [haiku-commits] haiku: hrev48834 - headers/compatibility/bsd
From: pulkomandy () pulkomandy ! tk
Date: 2015-02-26 21:02:22
Message-ID: 20150226210222.A321F5C2491 () vmrepo ! haiku-os ! org
[Download RAW message or body]
hrev48834 adds 1 changeset to branch 'master'
old head: 85e5aa30b15cf47a82095f337bf6f6212f3870b6
new head: e3468ef6007f1737c671a024422d53d72e7c3844
overview: http://cgit.haiku-os.org/haiku/log/?qt=range&q=e3468ef6007f+%5E85e5aa30b15c
----------------------------------------------------------------------------
e3468ef6007f: ifaddrs: add extern "C"
We need this to be callable from C programs. Thanks to Diver for
reporting!
[ Adrien Destugues <pulkomandy@gmail.com> ]
----------------------------------------------------------------------------
Revision: hrev48834
Commit: e3468ef6007f1737c671a024422d53d72e7c3844
URL: http://cgit.haiku-os.org/haiku/commit/?id=e3468ef6007f
Author: Adrien Destugues <pulkomandy@gmail.com>
Date: Thu Feb 26 21:02:37 2015 UTC
----------------------------------------------------------------------------
1 file changed, 10 insertions(+)
headers/compatibility/bsd/ifaddrs.h | 10 ++++++++++
----------------------------------------------------------------------------
diff --git a/headers/compatibility/bsd/ifaddrs.h b/headers/compatibility/bsd/ifaddrs.h
index 7169d0c..e02be83 100644
--- a/headers/compatibility/bsd/ifaddrs.h
+++ b/headers/compatibility/bsd/ifaddrs.h
@@ -6,6 +6,11 @@
#define _IFADDRS_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
struct ifaddrs {
struct ifaddrs *ifa_next; /* Next item in list */
const char *ifa_name; /* Name of interface */
@@ -22,4 +27,9 @@ int getifaddrs(struct ifaddrs **ifap);
void freeifaddrs(struct ifaddrs *ifa);
+#ifdef __cplusplus
+}
+#endif
+
+
#endif
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic