mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-18 03:44:39 +08:00
port_before.h: Add _ALIGNBYTES and enable getservent.c
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user