mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-06-05 10:45:49 +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/getprotoent.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/nameser/ns_name.c
|
||||
C_FILES += lib/libc/nameser/ns_netint.c
|
||||
|
@ -10,3 +10,14 @@
|
||||
#ifndef __ssize_t
|
||||
#define __ssize_t ssize_t
|
||||
#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