port_before.h: Add _ALIGNBYTES and enable getservent.c

This commit is contained in:
Joel Sherrill
2012-07-11 17:54:57 -05:00
parent 939b12b52e
commit 1543249d3e
2 changed files with 12 additions and 2 deletions

View File

@@ -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