File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / libpdel / ports / SunOS / hacks.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue Feb 21 23:25:53 2012 UTC (12 years, 8 months ago) by misho
Branches: libpdel, MAIN
CVS tags: v0_5_3, HEAD
libpdel


#define _XOPEN_SOURCE	600
#define _GNU_SOURCE	1
#define _BSD_SOURCE	1
#define _ISOC99_SOURCE	1
#define __EXTENSIONS__	1

#define __BEGIN_DECLS
#define __END_DECLS

/* Solaris does not have these 'errno' values */
#define EFTYPE		EINVAL
#define EPROGMISMATCH	EINVAL

#define REG_STARTEND	0

#define INFTIM		-1

#define ALIGNBYTES		(sizeof(size_t) - 1)		/* ?? */
#define ALIGN(p)		(((unsigned)(p) + ALIGNBYTES) & ~ALIGNBYTES)

#define mergesort(a,b,c,d)	(qsort(a,b,c,d), 0)
#define timegm			mktime				/* XXX */

#define u_int8_t	uint8_t
#define u_int16_t	uint16_t
#define u_int32_t	uint32_t
#define u_int64_t	uint64_t


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>