[rtems-libbsd commit] Port getdomainname() to RTEMS
Sebastian Huber
sebh at rtems.org
Wed Sep 7 13:44:03 UTC 2016
Module: rtems-libbsd
Branch: master
Commit: 7f75b564fc8e016f94b8acb6fbf99c7c198543e9
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=7f75b564fc8e016f94b8acb6fbf99c7c198543e9
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Wed Sep 7 15:43:44 2016 +0200
Port getdomainname() to RTEMS
---
freebsd/lib/libc/gen/getdomainname.c | 4 ++++
libbsd.py | 1 +
libbsd_waf.py | 1 +
3 files changed, 6 insertions(+)
diff --git a/freebsd/lib/libc/gen/getdomainname.c b/freebsd/lib/libc/gen/getdomainname.c
index 5588ef4..39234de 100644
--- a/freebsd/lib/libc/gen/getdomainname.c
+++ b/freebsd/lib/libc/gen/getdomainname.c
@@ -43,7 +43,11 @@ __FBSDID("$FreeBSD$");
int
getdomainname(name, namelen)
char *name;
+#ifndef __rtems__
int namelen;
+#else /* __rtems__ */
+ size_t namelen;
+#endif /* __rtems__ */
{
int mib[2];
size_t size;
diff --git a/libbsd.py b/libbsd.py
index 73f5a67..575edbb 100755
--- a/libbsd.py
+++ b/libbsd.py
@@ -1932,6 +1932,7 @@ def user_space(mm):
'contrib/pf/pfctl/pf_print_state.c',
'lib/libc/gen/err.c',
'lib/libc/gen/feature_present.c',
+ 'lib/libc/gen/getdomainname.c',
'lib/libc/gen/gethostname.c',
'lib/libc/gen/sethostname.c',
'lib/libc/inet/inet_addr.c',
diff --git a/libbsd_waf.py b/libbsd_waf.py
index 524b8bc..1f8e268 100644
--- a/libbsd_waf.py
+++ b/libbsd_waf.py
@@ -240,6 +240,7 @@ def build(bld):
'freebsd/contrib/pf/pfctl/pfctl_table.c',
'freebsd/lib/libc/gen/err.c',
'freebsd/lib/libc/gen/feature_present.c',
+ 'freebsd/lib/libc/gen/getdomainname.c',
'freebsd/lib/libc/gen/gethostname.c',
'freebsd/lib/libc/gen/sethostname.c',
'freebsd/lib/libc/inet/inet_addr.c',
More information about the vc
mailing list