mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-07-25 10:23:18 +08:00
port_before.h: Add _ALIGNBYTES and enable getservent.c
This commit is contained in:
parent
939b12b52e
commit
1543249d3e
@ -53,8 +53,7 @@ C_FILES += lib/libc/net/getnetnamadr.c
|
|||||||
C_FILES += lib/libc/net/getproto.c
|
C_FILES += lib/libc/net/getproto.c
|
||||||
C_FILES += lib/libc/net/getprotoent.c
|
C_FILES += lib/libc/net/getprotoent.c
|
||||||
C_FILES += lib/libc/net/getprotoname.c
|
C_FILES += lib/libc/net/getprotoname.c
|
||||||
# _ALIGNBYTES needs to be addressed
|
C_FILES += lib/libc/net/getservent.c
|
||||||
# C_FILES += lib/libc/net/getservent.c
|
|
||||||
C_FILES += lib/libc/gen/gethostname.c
|
C_FILES += lib/libc/gen/gethostname.c
|
||||||
C_FILES += lib/libc/nameser/ns_name.c
|
C_FILES += lib/libc/nameser/ns_name.c
|
||||||
C_FILES += lib/libc/nameser/ns_netint.c
|
C_FILES += lib/libc/nameser/ns_netint.c
|
||||||
|
@ -10,3 +10,14 @@
|
|||||||
#ifndef __ssize_t
|
#ifndef __ssize_t
|
||||||
#define __ssize_t ssize_t
|
#define __ssize_t ssize_t
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/*
|
||||||
|
* lib/libc/net/getservent.c needs _ALIGNBYTES and there seems to be no
|
||||||
|
* clean way to get it from the FreeBSD kernel code.
|
||||||
|
*
|
||||||
|
* Duplicated from freebsd/sys/param.h
|
||||||
|
*/
|
||||||
|
#ifndef _ALIGNBYTES
|
||||||
|
#define _ALIGNBYTES (sizeof(long) - 1)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user