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

4.1155-freebsd-126-freebsd-12freebsd-9.3
Last change on this file since 7d017b5 was 7d017b5, checked in by Joel Sherrill <joel.sherrill@…>, on Sep 11, 2012 at 9:05:36 PM

local/port_before.h: Make more like FreeBSD version

  • Property mode set to 100644
File size: 1.1 KB
Line 
1#include <freebsd/bsd.h>
2
3#include <freebsd/sys/_types.h>
4
5/*********************************************************************
6 *  These are also defined in the FreeBSD version of this file.
7 *********************************************************************/
8
9#define _LIBC      1
10/*
11 * This is defined in the FreeBSD source but we have no code yet which
12 * relies upon it.
13 */
14/* #define DO_PTHREADS     1 */
15#define USE_KQUEUE 1
16
17#define ISC_SOCKLEN_T   socklen_t
18#define ISC_FORMAT_PRINTF(fmt, args) \
19        __attribute__((__format__(__printf__, fmt, args)))
20#define DE_CONST(konst, var) \
21        do { \
22                union { const void *k; void *v; } _u; \
23                _u.k = konst; \
24                var = _u.v; \
25        } while (0)
26
27#define UNUSED(x) (x) = (x)
28
29
30/*********************************************************************
31 *  FROM HERE DOWN, THESE ARE NOT IN THE FreeBSD VERSION!!!
32 *********************************************************************/
33#ifndef __ssize_t
34#define __ssize_t ssize_t
35#endif
36
37#include <freebsd/machine/_align.h>
Note: See TracBrowser for help on using the repository browser.