[core] errno_t and rsize_t detection on Illumos

(thx devnexen)
This commit is contained in:
Glenn Strauss 2022-01-03 20:06:46 -05:00
parent 7eac25ac7f
commit 8b38a6eb35
1 changed files with 1 additions and 4 deletions

View File

@ -18,16 +18,13 @@
#endif
#endif
#include "first.h"
#ifdef __FreeBSD__
#if defined(__FreeBSD__) || defined(__sun)
#ifndef _RSIZE_T_DEFINED /* expecting __EXT1_VISIBLE 1 and _RSIZE_T_DEFINED */
#define _RSIZE_T_DEFINED
typedef size_t rsize_t;
#endif
#include <errno.h>
#endif
#ifdef __sun
#include <errno.h>
#endif
__BEGIN_DECLS