diff --git a/include/sys/types.h b/include/sys/types.h new file mode 100644 index 0000000..21e1c40 --- /dev/null +++ b/include/sys/types.h @@ -0,0 +1,25 @@ +/* + * Public domain + * sys/types.h compatibility shim + */ + +#include_next + +#ifndef LIBCOMPAT_SYS_TYPES_H +#define LIBCOMPAT_SYS_TYPES_H + +#include + +#ifdef __MINGW32__ +#include <_bsd_types.h> +#endif + +#if !defined(HAVE_ATTRIBUTE__DEAD) && !defined(__dead) +#define __dead __attribute__((__noreturn__)) +#endif + +#if !defined(HAVE_ATTRIBUTE__BOUNDED__) && !defined(__bounded__) +# define __bounded__(x, y, z) +#endif + +#endif