source: rtems-libbsd/freebsd-userspace/local/port_before.h @ c6a5ede

4.1155-freebsd-126-freebsd-12freebsd-9.3
Last change on this file since c6a5ede was c1e56a5, checked in by Joel Sherrill <joel.sherrill@…>, on 09/01/12 at 14:46:13

res_send.c: Now compiles

This required adding ISC .h files and adding some defines to
port_before.h.

  • Property mode set to 100644
File size: 681 bytes
Line 
1#include <freebsd/bsd.h>
2
3#include <freebsd/sys/_types.h>
4
5/*
6 * Some of the code needs to know it is being built inside libc.
7 */
8#define _LIBC 1
9
10/*
11 *  lib/libc/resolv/res_send.c needs this defined.
12 */
13#define USE_KQUEUE 1
14
15/*
16 *  lib/libc/resolv/res_send.c also needs this defined.
17 */
18#define ISC_SOCKLEN_T   socklen_t
19
20/*
21#ifndef _bsd_off_t
22#define _bsd_off_t off_t
23#endif
24*/
25
26#ifndef __ssize_t
27#define __ssize_t ssize_t
28#endif
29
30/*
31 * lib/libc/net/getservent.c needs _ALIGNBYTES and there seems to be no
32 * clean way to get it from the FreeBSD kernel code.
33 *
34 * Duplicated from freebsd/sys/param.h
35 */
36#ifndef _ALIGNBYTES
37#define _ALIGNBYTES     (sizeof(long) - 1)
38#endif
39
Note: See TracBrowser for help on using the repository browser.