#ifndef _YGGDRASIL_SYS_TYPES_H
#define _YGGDRASIL_SYS_TYPES_H 1

#if __SIZEOF_SIZE_T__ == 8
typedef int64_t ssize_t;
#elif __SIZEOF_SIZE_T__ == 4
typedef int32_t ssize_t;
#else
#error __SIZEOF_SIZE_T__ value not supported
#endif

// TODO _FILE_OFFSET_BITS
typedef ssize_t off_t;

// Some BSD extension used somewhere
typedef unsigned char u_char;

#endif
