Annotation of embedaddon/libpdel/ports/SunOS/hacks.h, revision 1.1
1.1 ! misho 1:
! 2: #define _XOPEN_SOURCE 600
! 3: #define _GNU_SOURCE 1
! 4: #define _BSD_SOURCE 1
! 5: #define _ISOC99_SOURCE 1
! 6: #define __EXTENSIONS__ 1
! 7:
! 8: #define __BEGIN_DECLS
! 9: #define __END_DECLS
! 10:
! 11: /* Solaris does not have these 'errno' values */
! 12: #define EFTYPE EINVAL
! 13: #define EPROGMISMATCH EINVAL
! 14:
! 15: #define REG_STARTEND 0
! 16:
! 17: #define INFTIM -1
! 18:
! 19: #define ALIGNBYTES (sizeof(size_t) - 1) /* ?? */
! 20: #define ALIGN(p) (((unsigned)(p) + ALIGNBYTES) & ~ALIGNBYTES)
! 21:
! 22: #define mergesort(a,b,c,d) (qsort(a,b,c,d), 0)
! 23: #define timegm mktime /* XXX */
! 24:
! 25: #define u_int8_t uint8_t
! 26: #define u_int16_t uint16_t
! 27: #define u_int32_t uint32_t
! 28: #define u_int64_t uint64_t
! 29:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>